CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

RE: C question


[Replies] [Reply] [View by Thread] [Help]
[Back To Programming]

Posted by Ker sefo On 2008-08-09 06:07:24
In Reply to C question Posted by Gamma Tr Chudik On 2008-08-08 22:31:38

Ker
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:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.01198 seconds


About Us | Privacy Policy | Mission Statement | Help