#include <stdio.h> int main()
#include <stdio.h>
int main()
{
int i = 5, j = 10, k = 15;
printf("%d ", sizeof(k /=i+j));
printf("%d", k);
return 0;
}
Assume size of an integer as 4 bytes. What is the output of above program?
Show answerHide answer
Correct answer: (C) 4 15
Explanation
sizeof only looks at the type of its operand and does not evaluate the expression, so k /= i+j never runs. It prints 4 (size of int), then k is still 15.