C programming increment and decrement doubt
Hello friends,
I have an big doubt in increment and decrement in c programming i am trying to compile the below code in gcc Code:
#include<stdio.h> Code:
9 |
It is not correct to change the same variable more than once without a "sequence point".
Nothing in the C standard tells the compiler the sequence in which your a++ and ++a are executed. So the results are undefined. |
oh what fun, do before, do after...
Code:
#include<stdio.h> Code:
10 |
Hi -
Code:
#include<stdio.h> Here are two more links that might help: http://www.daniweb.com/forums/thread100183.html http://c-faq.com/expr/index.html 'Hope that helps .. PSM |
All times are GMT -5. The time now is 06:31 AM. |