before the control transfered into the called fucntion(ie. xyz()), the values in some of the registers copied into the stack(registers are : BP,SP,CS,IP,falg).also the values of the local variabl...
Sunil Soni
May 5th, 2006
when the function 'abc()' calls another function 'xyz()' then first of all, current status of execution is stored in the STACK i.e. the address of current statement (Which lies in Code segment), then ...
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