Vidyalelo
C Programming · Q9

C Miscellaneous

Programming · C Programming · question 9

Q9

Determine Output: #define int char void main() int i = 65; printf("sizeof(i)=%d", sizeof(i));

A.
sizeof(i)=2
B.
sizeof(i)=1
Answer
C.
Compiler Error
D.
None of These

Answer: Option B

Solution

Answer: Option B
Solution:

Since the #define replaces the string int by the macro char.