|
-
March 8th, 2013, 11:25 AM
#5
Re: Why "char" is inside "int" loop?
 Originally Posted by RyuMaster
Thank you. Probably looping using pointers has some speed gain,
With today's compilers, very little, if any speed gain is achieved by using pointers in this manner.
So can I assume then, that:
C++: *array+1 is same as
C#: array[0+1]
No.
Code:
*(array + 1) is equivalent to array[1]
Note the parentheses. There is a big difference between this:
and this:
Regards,
Paul McKenzie
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
|