ExamVeda
Login
Home
This question belongs to C Program C Miscellaneous
C Miscellaneous
?

Determine Output:
void main()
{
      int i=5, j=6, z;
      printf("%d", i+++j);
}

Answer & Solution
Correct Answer: Option C

The expression i+++j is treated as ((i++) + j)

Examveda
Question posted by Examveda
Community

Join the Discussion

4 Comments
Deepak Goyal
Deepak Goyal 6 years ago
i++ is post increment so will not increase by 1
5++ + 6=11
Kajal Baswaraj
Kajal Baswaraj 7 years ago
if(i++)+j means (5+1)+6=12 how it will print 11
Lavanya Reddy
Lavanya Reddy 9 years ago
here the (i++)+j means (5+1)+6=12



































Harish
Harish 9 years ago
why is it not treated as i+(++j) ?