What will be the output of the program in DOS (Compiler - Turbo C)? #include double i; int main() { (int)(float)(char) i; printf("%d",sizeof(i)); return 0; }
Answers
Answered by
1
It will return an error.
Answered by
1
Answer:
Error
Explanation:
(int)(float)(char) i; /*This is not valid. And moreover the header file is not declared properly. If we have #include<stdio.h> and comment the above line, we get the following output. If it is not commented, the program does not run and throws error.*/
Output (Assuming the above conditions):
8
Similar questions
CBSE BOARD X,
7 months ago
Accountancy,
7 months ago
English,
1 year ago
Science,
1 year ago
Science,
1 year ago
Science,
1 year ago