when we add the unarry values then what is the output

0 votes
asked Dec 22, 2019 by anonymous 1 flag
For example:-

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

I want the line by line explaination

1 Answer

0 votes
answered Dec 27, 2019 by gameforcer (2,950 points)

It's hard to say what the output will be since it's undefined behavior. Same thing as explained here.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...