Thread
:
Setting value to char pointer element....
View Single Post
Oct 5th, 2005, 1:40 PM
#
8
aznluvsmc
Hobbyist Programmer
Join Date: Aug 2005
Posts: 137
Rep Power:
4
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.
(
Toggle Plain Text
)
const char *string = "Hello World";
const char *string = "Hello World";
Can someone explain this to me?
aznluvsmc
View Public Profile
Visit aznluvsmc's homepage!
Find More Posts by aznluvsmc