Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Questions about defining a funciton Pin
toxcct18-Mar-04 9:01
toxcct18-Mar-04 9:01 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 9:18
nachilau18-Mar-04 9:18 
GeneralRe: Questions about defining a funciton Pin
Alexander M.,18-Mar-04 9:24
Alexander M.,18-Mar-04 9:24 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 10:26
nachilau18-Mar-04 10:26 
GeneralRe: Questions about defining a funciton Pin
David Crow18-Mar-04 9:11
David Crow18-Mar-04 9:11 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 9:23
nachilau18-Mar-04 9:23 
GeneralRe: Questions about defining a funciton Pin
David Crow18-Mar-04 9:31
David Crow18-Mar-04 9:31 
GeneralRe: Questions about defining a funciton Pin
Michael Dunn18-Mar-04 15:01
sitebuilderMichael Dunn18-Mar-04 15:01 
const char* means "pointer to a constant char" - you cannot change the value of the char that is pointed to, but you can change the pointer to point at some other char.

char* const means "constant pointer to a char" - you can change the value of the char pointed to, but you cannot change the pointer to point a some other char.

And const char* const means a combination of the two. Smile | :)

Example code:
char c = 'c';
char d = 'd';
const char* p1 = &c;
char* const p2 = &c;
 
  *p1 = 'x';  // illegal
  p1 = &d;    // legal
  
  *p2 = 'z';  // legal
  p2 = &d;    // illegal


--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ

----
Laugh it up, fuzzball.
GeneralHELP! .dbf header problem Pin
BlackDice18-Mar-04 7:15
BlackDice18-Mar-04 7:15 
GeneralEditbox unicode solved Pin
Demian Panello18-Mar-04 7:06
Demian Panello18-Mar-04 7:06 
GeneralCircular dependency Pin
bisquic18-Mar-04 6:58
bisquic18-Mar-04 6:58 
GeneralRe: Circular dependency Pin
Maximilien18-Mar-04 7:08
Maximilien18-Mar-04 7:08 
GeneralRe: Circular dependency Pin
bisquic18-Mar-04 7:18
bisquic18-Mar-04 7:18 
GeneralRe: Circular dependency Pin
jmkhael18-Mar-04 7:23
jmkhael18-Mar-04 7:23 
GeneralRe: Circular dependency Pin
Maximilien18-Mar-04 7:28
Maximilien18-Mar-04 7:28 
GeneralRe: Circular dependency Pin
bisquic18-Mar-04 7:37
bisquic18-Mar-04 7:37 
GeneralRe: Circular dependency Pin
Ian Darling18-Mar-04 23:06
Ian Darling18-Mar-04 23:06 
GeneralEditBox Unicode Pin
Demian Panello18-Mar-04 6:40
Demian Panello18-Mar-04 6:40 
GeneralRe: EditBox Unicode Pin
Alexander M.,18-Mar-04 9:16
Alexander M.,18-Mar-04 9:16 
GeneralRe: EditBox Unicode Pin
Prakash Nadar18-Mar-04 14:28
Prakash Nadar18-Mar-04 14:28 
GeneralRe: EditBox Unicode Pin
Prakash Nadar18-Mar-04 14:32
Prakash Nadar18-Mar-04 14:32 
Questionhow to represent a dynamic graph layout with c++??? Pin
rockrox8018-Mar-04 6:38
rockrox8018-Mar-04 6:38 
AnswerRe: how to represent a dynamic graph layout with c++??? Pin
Prakash Nadar18-Mar-04 14:26
Prakash Nadar18-Mar-04 14:26 
Questionhow to check a radio box Pin
Deepak Samuel18-Mar-04 6:07
Deepak Samuel18-Mar-04 6:07 
AnswerRe: how to check a radio box Pin
RChin18-Mar-04 6:09
RChin18-Mar-04 6:09 

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.