Determine Output:
void main()
{
int i=5, j=6, z;
printf("%d", i+++j);
}
void main()
{
int i=5, j=6, z;
printf("%d", i+++j);
}
A. 12
B. 13
C. 11
D. None of These
Answer: Option C
Solution (By Examveda Team)
The expression i+++j is treated as ((i++) + j)
i++ is post increment so will not increase by 1
5++ + 6=11
if(i++)+j means (5+1)+6=12 how it will print 11
here the (i++)+j means (5+1)+6=12
why is it not treated as i+(++j) ?