Computer Science, asked by avantika70, 11 months ago

Compute the printed value of i of the C program given below ;-

#include <stdio.h>
int main()
{
int i= 2;
i = ++i++i;
printf("%d",i);
return 0;

}

Answer = ?

Answers

Answered by jhansi256
0

Answer:

In the above code there is error in the 5th line that is i=++i++i; this statement doesnot get executed, for this you need to keep semicolon ( ; ) I=++i;++i

then it will get executed ...

so the output will be 4

Attachments:
Similar questions