Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

What is const char* and char* difference ?

4: Adsense

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   

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.

#2 Willbo   Members   

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   

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.