|
-
February 4th, 2004, 08:34 AM
#4
Re: Is this So Costly ?
Originally posted by the one I mean, I do de-reference 'a pointer to array' to 'an array'; and the size of array is very large( e.g. 100.000 );
Not quite. T* as a type is just a pointer to T, it's not an array of T. So you have a T**, which is a pointer to a pointer of T, you dereference it and this will become only a pointer to T.
So the dereference operation only works on the pointer and hence it is quite fast.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
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
|