Vidyalelo
C Programming · Q81

Operators and Expressions

Programming · C Programming · question 81

Q81

What will be the output of the following C code? #include (sizeof double = 8, float = 4, void = 1) #define PI 3.14 int main() printf("%d", sizeof(PI));

A.
Output is 8
Answer
B.
Output is 4
C.
Output is 1
D.
Error, we can't use sizeof on macro-definitions

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board