Click here to Skip to main content
15,881,380 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas29-Mar-20 5:54
professionalGreg Utas29-Mar-20 5:54 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru29-Mar-20 6:07
Calin Negru29-Mar-20 6:07 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 4:19
mveRichard MacCutchan29-Mar-20 4:19 
GeneralRe: Passing an array as argument to a function Pin
leon de boer29-Mar-20 4:21
leon de boer29-Mar-20 4:21 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas29-Mar-20 5:53
professionalGreg Utas29-Mar-20 5:53 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 6:55
mveRichard MacCutchan29-Mar-20 6:55 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas29-Mar-20 7:07
professionalGreg Utas29-Mar-20 7:07 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 7:20
mveRichard MacCutchan29-Mar-20 7:20 
A pointer rarely means a pointer to a single item, it always indicates a pointer to a set of items. If you want to pass a single int, char etc, then why use a pointer?

I would agree with you on using the if(p != nullptr) construct, it makes it much clearer.
GeneralRe: Passing an array as argument to a function Pin
Greg Utas29-Mar-20 7:50
professionalGreg Utas29-Mar-20 7:50 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 21:07
mveRichard MacCutchan29-Mar-20 21:07 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas30-Mar-20 2:40
professionalGreg Utas30-Mar-20 2:40 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan30-Mar-20 3:28
mveRichard MacCutchan30-Mar-20 3:28 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas30-Mar-20 3:35
professionalGreg Utas30-Mar-20 3:35 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan30-Mar-20 4:04
mveRichard MacCutchan30-Mar-20 4:04 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas30-Mar-20 4:11
professionalGreg Utas30-Mar-20 4:11 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan30-Mar-20 4:24
mveRichard MacCutchan30-Mar-20 4:24 
GeneralRe: Passing an array as argument to a function Pin
k505430-Mar-20 4:58
mvek505430-Mar-20 4:58 
GeneralRe: Passing an array as argument to a function Pin
k505429-Mar-20 7:52
mvek505429-Mar-20 7:52 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru29-Mar-20 8:11
Calin Negru29-Mar-20 8:11 
GeneralRe: Passing an array as argument to a function Pin
k505429-Mar-20 9:42
mvek505429-Mar-20 9:42 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru30-Mar-20 22:30
Calin Negru30-Mar-20 22:30 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru31-Mar-20 21:36
Calin Negru31-Mar-20 21:36 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan31-Mar-20 23:02
mveRichard MacCutchan31-Mar-20 23:02 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru31-Mar-20 23:26
Calin Negru31-Mar-20 23:26 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan1-Apr-20 0:36
mveRichard MacCutchan1-Apr-20 0:36 

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.