
- Forum
- Programming Talk
- C and C++
- auto-increment!! help!
auto-increment!! help!
This is a discussion on auto-increment!! help! within the C and C++ forums, part of the Programming Talk category; int c=6; b=c++ - --c*c++; printf("%d%d",c++ - --c*c++,b); there is a difference in th output how it that?? can u ...
-
12-29-2006, 02:42 AM #1
- Join Date
- Nov 2006
- Answers
- 3
auto-increment!! help!
int c=6;
b=c++ - --c*c++;
printf("%d%d",c++ - --c*c++,b);
there is a difference in th output how it that?? can u help plzz!!
-
int c=6;
b=c++ - --c*c++;
b= 6 - (7-1) * 6; // now c=7
in printf function, you are starting with c=7. When you calculated b, you started with c=6

Reply With Quote





