1.

If char=1, int=4, and float=4 bytes size, What will be the output of the program ?

#include<stdio.h> int main()
{ char ch = 'A'; printf("%d, %d, %d", sizeof(ch), sizeof('A'), sizeof(3.14f)); return 0;
}

A. 1, 2, 4
B. 1, 4, 4
C. 2, 2, 4
D. 2, 4, 8
Answer» C. 2, 2, 4


Discussion

No Comment Found