Computer Science, asked by preetanjali9451, 1 year ago

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 siddhartharao77
1
It will return an error.
Answered by busybalaji02pbwcoq
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