What will be the output of the following program in UNIX OS with CC compiler and TC compiler?int main(){ int i=5; printf("\n%d",++i + ++i + ++i + ++i + ++i );} If any difference then Why it is difference?
Undefined behavioroutput may vary from compiler to compilervalue of a variable is getting modified more than once between 2 sequence pointshttp://en.wikipedia.org/wiki/Sequence_point