|
-
June 18th, 2009, 09:12 PM
#1
From pointers and references; which one is more efficient in terms of memory usage?”
Hello,
From pointers and references; which one is more efficient in terms of memory usage?
-
June 18th, 2009, 09:26 PM
#2
Re: From pointers and references; which one is more efficient in terms of memory usag
There's no significant difference, especially once the optimizer gets involved.
-
June 18th, 2009, 10:54 PM
#3
Re: From pointers and references; which one is more efficient in terms of memory usag
Technically references are implicit pointers. There should not be differences.
-
June 18th, 2009, 11:14 PM
#4
Re: From pointers and references; which one is more efficient in terms of memory usag
thanks but what is difference in terms of memory? Detail please.................?
-
June 18th, 2009, 11:41 PM
#5
Re: From pointers and references; which one is more efficient in terms of memory usag
How a compiler chooses to implement references is not defined by the standard, as far as I know. Thus there's no way to answer your question.
For all intents and purposes, you should consider them equivalent in terms of memory usage.
-
June 19th, 2009, 04:08 AM
#6
Re: From pointers and references; which one is more efficient in terms of memory usag
 Originally Posted by itguy310
thanks but what is difference in terms of memory? Detail please.................?
As Lindley pointed out, there is no standard way that references are implemented. If you have the C++ specification, the only thing that is mentioned about references is how they are supposed to behave, not how they're implemented.
Regards,
Paul McKenzie
-
June 19th, 2009, 10:50 PM
#7
Re: From pointers and references; which one is more efficient in terms of memory usag
There are no null references.
Thanks for your help.
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
|