View Single Post
Old Oct 5th, 2005, 1:40 PM   #8
aznluvsmc
Hobbyist Programmer
 
Join Date: Aug 2005
Posts: 137
Rep Power: 4 aznluvsmc is on a distinguished road
Sorry to sound like a newbie but why is the string read-only? I thought that you had to use the const modifier to make a variable read-only.

const char *string = "Hello World";

Can someone explain this to me?
aznluvsmc is offline   Reply With Quote