Click here to Skip to main content
15,905,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: CListCtrl SetItemState(...) timing Pin
CPallini10-Dec-07 9:14
mveCPallini10-Dec-07 9:14 
GeneralDisplaying a " in the string Pin
bigdenny20010-Dec-07 4:53
bigdenny20010-Dec-07 4:53 
GeneralRe: Displaying a " in the string Pin
George L. Jackson10-Dec-07 5:03
George L. Jackson10-Dec-07 5:03 
GeneralRe: Displaying a " in the string Pin
bigdenny20010-Dec-07 8:00
bigdenny20010-Dec-07 8:00 
GeneralRunning a program, and displaying user feedback, without the need to click buttons Pin
maladuk10-Dec-07 4:14
maladuk10-Dec-07 4:14 
GeneralRe: Running a program, and displaying user feedback, without the need to click buttons Pin
CPallini10-Dec-07 4:43
mveCPallini10-Dec-07 4:43 
GeneralRe: Running a program, and displaying user feedback, without the need to click buttons Pin
David Crow10-Dec-07 5:31
David Crow10-Dec-07 5:31 
GeneralSystem Information Pin
Daniel Kanev10-Dec-07 2:33
Daniel Kanev10-Dec-07 2:33 
GeneralRe: System Information Pin
Matthew Faithfull10-Dec-07 2:53
Matthew Faithfull10-Dec-07 2:53 
GeneralRe: System Information Pin
Don Box10-Dec-07 3:02
Don Box10-Dec-07 3:02 
QuestionRe: System Information Pin
David Crow10-Dec-07 3:40
David Crow10-Dec-07 3:40 
GeneralRe: System Information Pin
Stephen Hewitt10-Dec-07 12:51
Stephen Hewitt10-Dec-07 12:51 
GeneralRe: System Information Pin
David Crow11-Dec-07 4:21
David Crow11-Dec-07 4:21 
GeneralRe: System Information Pin
jhwurmbach10-Dec-07 4:02
jhwurmbach10-Dec-07 4:02 
GeneralLog Pin
john563210-Dec-07 2:20
john563210-Dec-07 2:20 
GeneralRe: Log Pin
CPallini10-Dec-07 2:32
mveCPallini10-Dec-07 2:32 
AnswerRe: Log Pin
David Crow10-Dec-07 3:42
David Crow10-Dec-07 3:42 
Generalunsigned value Pin
john563210-Dec-07 1:53
john563210-Dec-07 1:53 
GeneralRe: unsigned value Pin
jhwurmbach10-Dec-07 2:02
jhwurmbach10-Dec-07 2:02 
GeneralRe: unsigned value Pin
Cedric Moonen10-Dec-07 2:03
Cedric Moonen10-Dec-07 2:03 
GeneralRe: unsigned value Pin
CPallini10-Dec-07 2:10
mveCPallini10-Dec-07 2:10 
Generalstring buffer Pin
George_George10-Dec-07 1:01
George_George10-Dec-07 1:01 
Hello everyone,


Suppose we defined a string buffer (array), like this,

char array[] = "hello world";
char buf[256]

Sometimes, I noticed that we either use,

1. array (buf)
or use,
2. &array (&buf)
or use
3. &array[0] (&buf[0])

as the beginning address of the array,

example like,

strcpy (buf, array);
strcpy (&buf, array);
...

I am wondering the differences between the 3 approaches, and which approach is the most correct?


thanks in advance,
George

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.