Vidyalelo
C Programming · Q82

Operators and Expressions

Programming · C Programming · question 82

Q82

What will be the output of the following C code? #include main() int a = 1; printf("size of a is %d, ", sizeof(++a)); printf("value of a is %d", a); ;

A.
size of a is 4, value of a is 1
Answer
B.
size of a is 4, value of a is 2
C.
size of a is 2, value of a is 2
D.
size of a is 2, value of a is 1

Answer: Option A

Solution

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