15. What about sizeof operator?
Ans: It returns the size of the variable.
Ex - 1: What is the output?
void main() { float j; j=1000*1000; printf("%f",j); }
1. 1000000 2. Overflow 3. Error 4. None
Ans: 4
Ex - 2: What is the output? void main() { int i=7; printf("%d",i++*i++); }
Ans: 56
Ex - 3: Find the output for the following C program main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }
Ans: 57 94