4,063 views
2 votes
2 votes
int main(){
    int i=5,j;
    j=++i + ++i + ++i;
    printf("%d %d",i,j);
    return 0;

}

 

https://gateoverflow.in/?qa=blob&qa_blobid=15560219953750733487

please explain how j = 22 comes in output??

1 Answer

Related questions

2 votes
2 votes
3 answers
3
indrajeet asked Jul 17, 2016
2,485 views
#include<stdio.h void main(){ m(); void m(){ printf("hi\n"); } } please explain ?
0 votes
0 votes
1 answer
4
Desert_Warrior asked May 16, 2016
2,371 views
#include<stdio.h int main() { int a = 5; int b = ++a * a++; printf("%d ",b); return 0; }(a) 25 (b) 30 (c) 36 (d) Undefined Behavior