Hi see above code. It prints the result as 12 11 10. How it is? Can you explain?Code:int main() { int i=10; void f(int,int,int); f(i++,i++,i++); return 0; } void f(int x, int y, int z) { printf("%d %d %d",x,y,z); }
This is a discussion on need explanation for given pgm within the C Programming forums, part of the General Programming Boards category; Code: int main() { int i=10; void f(int,int,int); f(i++,i++,i++); return 0; } void f(int x, int y, int z) { ...
Hi see above code. It prints the result as 12 11 10. How it is? Can you explain?Code:int main() { int i=10; void f(int,int,int); f(i++,i++,i++); return 0; } void f(int x, int y, int z) { printf("%d %d %d",x,y,z); }
It has undefined behaviour. Read the various items in this FAQ.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way