Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: char[] problem Pin
valikac9-May-03 7:11
valikac9-May-03 7:11 
GeneralRe: char[] problem Pin
Mazdak9-May-03 7:21
Mazdak9-May-03 7:21 
GeneralRe: char[] problem Pin
David Crow9-May-03 7:12
David Crow9-May-03 7:12 
GeneralRe: char[] problem Pin
Mazdak9-May-03 7:24
Mazdak9-May-03 7:24 
GeneralRe: char[] problem Pin
David Crow9-May-03 7:47
David Crow9-May-03 7:47 
GeneralRe: char[] problem Pin
jason999-May-03 7:27
jason999-May-03 7:27 
GeneralRe: char[] problem Pin
Mazdak9-May-03 8:22
Mazdak9-May-03 8:22 
GeneralRe: char[] problem Pin
David Crow9-May-03 8:43
David Crow9-May-03 8:43 
Since arrays decay immediately into pointers, an array is never actually passed to a function. Allowing pointer parameters to be declared as arrays is a simply a way of making it look as though the array was being passed.

Therefore, any parameter declarations which "look like" arrays, e.g.

f( char a[])
{ ... }

are treated by the compiler as if they were pointers, since that is what the function will receive if an array is passed:

f( char *a)
{ ... }

This conversion holds only within function formal parameter declarations, nowhere else. If the conversion bothers you, avoid it.
GeneralRe: char[] problem Pin
kuhx198011-May-03 3:34
kuhx198011-May-03 3:34 
GeneralUsing IDE with a custom build-script Pin
Anonymous9-May-03 6:30
Anonymous9-May-03 6:30 
GeneralRe: Using IDE with a custom build-script Pin
David Crow9-May-03 7:15
David Crow9-May-03 7:15 
GeneralRe: Using IDE with a custom build-script Pin
Anonymous9-May-03 10:31
Anonymous9-May-03 10:31 
GeneralRe: Using IDE with a custom build-script Pin
David Crow9-May-03 10:46
David Crow9-May-03 10:46 
GeneralRe: Using IDE with a custom build-script Pin
Anonymous12-May-03 0:31
Anonymous12-May-03 0:31 
GeneralRe: Using IDE with a custom build-script Pin
David Crow12-May-03 4:14
David Crow12-May-03 4:14 
GeneralRe: Using IDE with a custom build-script Pin
Moak12-May-03 23:19
Moak12-May-03 23:19 
GeneralPicture Control not showing up in Non-Modal Dialog Box Pin
Neflyte9-May-03 6:06
Neflyte9-May-03 6:06 
GeneralCListCtrl :o) Pin
MemLeak9-May-03 5:01
MemLeak9-May-03 5:01 
GeneralRe: CListCtrl :o) Pin
David Crow9-May-03 5:06
David Crow9-May-03 5:06 
GeneralRe: CListCtrl :o) Pin
MemLeak9-May-03 6:53
MemLeak9-May-03 6:53 
GeneralRe: CListCtrl :o) Pin
Michael Dunn9-May-03 7:49
sitebuilderMichael Dunn9-May-03 7:49 
GeneralRe: CListCtrl :o) Pin
David Crow9-May-03 8:11
David Crow9-May-03 8:11 
GeneralRe: CListCtrl :o) Pin
Mikey_E29-Aug-03 11:02
professionalMikey_E29-Aug-03 11:02 
GeneralRe: CListCtrl :o) Pin
David Crow30-Aug-03 15:33
David Crow30-Aug-03 15:33 
GeneralRe: CListCtrl :o) Pin
Mikey_E30-Aug-03 16:30
professionalMikey_E30-Aug-03 16:30 

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.