Click here to Skip to main content
15,887,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string array v.s. int array Pin
CPallini10-Dec-07 22:21
mveCPallini10-Dec-07 22:21 
GeneralRe: string array v.s. int array Pin
George_George10-Dec-07 22:40
George_George10-Dec-07 22:40 
GeneralRe: string array v.s. int array [modified] Pin
CPallini10-Dec-07 22:51
mveCPallini10-Dec-07 22:51 
GeneralRe: string array v.s. int array Pin
George_George10-Dec-07 23:15
George_George10-Dec-07 23:15 
GeneralRe: string array v.s. int array Pin
CPallini10-Dec-07 23:41
mveCPallini10-Dec-07 23:41 
GeneralRe: string array v.s. int array Pin
George_George11-Dec-07 1:54
George_George11-Dec-07 1:54 
GeneralRe: string array v.s. int array Pin
CPallini11-Dec-07 2:11
mveCPallini11-Dec-07 2:11 
GeneralRe: string array v.s. int array Pin
Iain Clarke, Warrior Programmer11-Dec-07 6:08
Iain Clarke, Warrior Programmer11-Dec-07 6:08 
Cpallini has already explained at some length (to me too!) how the address of an array has the same value for convenience to printf (and it's relations).

The two bits of code you've shown do the same thing with derefencing. The only difference is that the wcout is clever enough to go "oh, I won't give a number, I'll give a lump of text - aren't I helpful?".

The short answer to question 2
BECAUSE.

Longer answer...
Because it has been defined that way by people cleverer than us.

Is this feature causing you problems?

Iain.
GeneralRe: string array v.s. int array Pin
George_George11-Dec-07 21:14
George_George11-Dec-07 21:14 
GeneralWM_CTLCOLOR Pin
Tara1410-Dec-07 17:42
Tara1410-Dec-07 17:42 
GeneralRe: WM_CTLCOLOR Pin
Naveen10-Dec-07 18:22
Naveen10-Dec-07 18:22 
GeneralCursor color in resource editor Pin
followait10-Dec-07 16:23
followait10-Dec-07 16:23 
GeneralRe: Cursor color in resource editor Pin
Nelek10-Dec-07 23:23
protectorNelek10-Dec-07 23:23 
GeneralRe: Cursor color in resource editor Pin
followait11-Dec-07 3:47
followait11-Dec-07 3:47 
GeneralRe: Cursor color in resource editor Pin
Nelek11-Dec-07 22:32
protectorNelek11-Dec-07 22:32 
GeneralRe: Cursor color in resource editor Pin
followait11-Dec-07 23:02
followait11-Dec-07 23:02 
QuestionIs floating point number mathematical integer? Pin
Oliver12310-Dec-07 14:15
Oliver12310-Dec-07 14:15 
AnswerRe: Is floating point number mathematical integer? Pin
followait10-Dec-07 16:38
followait10-Dec-07 16:38 
GeneralRe: Is floating point number mathematical integer? Pin
cp987610-Dec-07 17:11
cp987610-Dec-07 17:11 
AnswerRe: Is floating point number mathematical integer? Pin
cp987610-Dec-07 17:15
cp987610-Dec-07 17:15 
Generaldll question Pin
KellyR10-Dec-07 13:00
KellyR10-Dec-07 13:00 
GeneralInstallSheild Help Please Pin
Trey549810-Dec-07 9:01
Trey549810-Dec-07 9:01 
GeneralRe: InstallSheild Help Please Pin
David Crow10-Dec-07 9:39
David Crow10-Dec-07 9:39 
QuestionCListCtrl SetItemState(...) timing Pin
Doc Lobster10-Dec-07 7:16
Doc Lobster10-Dec-07 7:16 
GeneralRe: CListCtrl SetItemState(...) timing Pin
Nathan Holt at EMOM10-Dec-07 7:37
Nathan Holt at EMOM10-Dec-07 7:37 

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.