Discussion Forum : Operators And Expressions
Question - What will be the output of this program on an implementation where int occupies 2 bytes?
#include
void main()
{
int i = 3;
int j;
j = sizeof(++i + ++i);
printf("i=%d j=%d", i, j);
}
Options:
A .  i=4 j=2
B .  i=3 j=2
C .  i=5 j=2
D .  the behavior is undefined
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *