RE: C question |
||
![]() Ker sefo I think that basically: ++i or ++ptr is the C++ way to increment (as in: i = i+1 or i += 1) whereas i++ or prt++ is the standard C way. On 2008-08-08 22:31:38, Chudik wrote >Hi! > >I'm trying to understand the difference between ++ptr and ptr++ > >lets say i have a char array(string):"wonder beer" and that i have a loop going on that checks each "cell" for something - lets say white-spaces, so whats the different between the two increment methods? please explain as much as you can(with examples) because this particular issue is hard for me to understand.. >:/ >Thanks! Replies:
|
||
| CyberArmy::Forum v0.6 Generated In 0.01198 seconds |