|
-
August 3rd, 2010, 08:06 AM
#17
Re: A question regarding *s++
Good rule of thumb is unless you absolutely have to have the original value of the value, use preincrement. I really irks me when I see things like this:
Code:
for(i = 0; i < 10; i++)
Grr.
For primitives it doesn't matter, the compiler will be smart enough to fix it for you, but if you do things like that, you get into the habit of it, and habits are hard to break.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|