Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhats the difference? Pin
leppie17-Aug-03 9:13
leppie17-Aug-03 9:13 
AnswerRe: Whats the difference? Pin
User 665817-Aug-03 10:25
User 665817-Aug-03 10:25 
GeneralRe: Whats the difference? Pin
leppie17-Aug-03 10:51
leppie17-Aug-03 10:51 
GeneralRe: Whats the difference? Pin
Michael Dunn17-Aug-03 13:02
sitebuilderMichael Dunn17-Aug-03 13:02 
GeneralRe: Whats the difference? Pin
Hosam Aly Mahmoud17-Aug-03 12:57
Hosam Aly Mahmoud17-Aug-03 12:57 
GeneralRe: Whats the difference? Pin
Bob Stanneveld17-Aug-03 13:24
Bob Stanneveld17-Aug-03 13:24 
GeneralRe: What's the difference? Pin
Hosam Aly Mahmoud17-Aug-03 13:31
Hosam Aly Mahmoud17-Aug-03 13:31 
GeneralRe: What's the difference? Pin
Ryan Binns17-Aug-03 15:37
Ryan Binns17-Aug-03 15:37 
Hosam Aly Mahmoud wrote:
I have heard one of my friends saying that references take two bytes in memory, whereas pointers take four. Is this true?

No. References take the same amount of memory as pointers.

References are generally safer than pointers because they are gauranteed to point to something, and they are type-safe (they can't be cast to references of incompatible types).

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: What's the difference? Pin
Hosam Aly Mahmoud17-Aug-03 17:38
Hosam Aly Mahmoud17-Aug-03 17:38 
GeneralRe: What's the difference? Pin
Ryan Binns17-Aug-03 18:38
Ryan Binns17-Aug-03 18:38 
GeneralRe: What's the difference? Pin
Bob Stanneveld18-Aug-03 7:04
Bob Stanneveld18-Aug-03 7:04 
Questioncarriage return bug in Win32 edit controls? Pin
Jim Crafton17-Aug-03 7:33
Jim Crafton17-Aug-03 7:33 
AnswerRe: carriage return bug in Win32 edit controls? Pin
keeploading17-Aug-03 19:08
keeploading17-Aug-03 19:08 
AnswerRe: carriage return bug in Win32 edit controls? Pin
David Crow18-Aug-03 3:07
David Crow18-Aug-03 3:07 
QuestionProblem with vector or data types convertion? Pin
Vassilis Papoulidis17-Aug-03 7:09
Vassilis Papoulidis17-Aug-03 7:09 
Generalc++ dll exports Pin
Alexander M.,17-Aug-03 6:21
Alexander M.,17-Aug-03 6:21 
GeneralRe: c++ dll exports Pin
Dominik Reichl17-Aug-03 6:55
Dominik Reichl17-Aug-03 6:55 
GeneralRe: c++ dll exports Pin
Alexander M.,18-Aug-03 1:56
Alexander M.,18-Aug-03 1:56 
GeneralNeed help with F-lock Pin
Snyp17-Aug-03 4:26
Snyp17-Aug-03 4:26 
QuestionThird party file protection? Pin
Kayembi17-Aug-03 3:58
Kayembi17-Aug-03 3:58 
AnswerRe: Third party file protection? Pin
Maximilien17-Aug-03 4:19
Maximilien17-Aug-03 4:19 
AnswerRe: Third party file protection? Pin
Neville Franks17-Aug-03 10:36
Neville Franks17-Aug-03 10:36 
GeneralRe: Third party file protection? Pin
Kayembi17-Aug-03 11:14
Kayembi17-Aug-03 11:14 
GeneralRe: Third party file protection? Pin
Terry O'Nolley17-Aug-03 17:40
Terry O'Nolley17-Aug-03 17:40 
GeneralRe: Third party file protection? Pin
Neville Franks18-Aug-03 2:07
Neville Franks18-Aug-03 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.