in Programming in C
656 views
0 votes
0 votes

#include <stdio.h>
int main(void)
{
    int a=3,b,c,d=10,e=20,f;

    c= ++a + a++ + a++ + ++a;


    b= ++d + ++d + ++d + ++d;


    f= ++e + --e + e-- + e++;

    printf("%d %d\n",a,c);

    printf("%d %d\n",d,b);

    printf("%d %d\n",e,f);

 return 0;
}

please give the detailed explanation how it works? and what is the output?

in Programming in C
656 views

1 comment

UNDEFINED BEHAVIOR. These type of question will not be asked in GATE, don't waste too much time on these questions.

https://gateoverflow.in/62411/undefined-behaviour-in-c

2
2

Please log in or register to answer this question.

Related questions