Jump to content

  • Log In with Google      Sign In   
  • Create Account

What is const char* and char* difference ?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 davidkosenina   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 April 2003 - 08:11 AM

Helo Can somebody explain to me what is the difference betwen const char* and char* pointers? Thanks.

Sponsor:

#2 Willbo   Members   -  Reputation: 139

Like
Likes
Like

Posted 26 April 2003 - 08:17 AM

a "const" variable is a constant
You can''t change that value

#3 Eskhan   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 April 2003 - 09:28 AM

If you make for example a const char * foo it means that the
program can't change the data that foo points too through the
foo pointer. If you have a const char and want to point to it
you must point to it with a const char*



[edited by - Eskhan on April 26, 2003 4:31:50 PM]




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS