hey u r doing it wrong

A

Ashish

boss when ever u declare a char * agroup;
and u give it a value say "USA" u r making or rather it is placed as READ only
so the question of modifying it can not come...
 
K

Keith Thompson

boss when ever u declare a char * agroup; and u give it a value say
"USA" u r making or rather it is placed as READ only so the question
of modifying it can not come...

What?

This looks like a reply to some other article, but you didn't post it
as a followup, so we can't tell what you're talking about.

Speaking of knowing what you're talking about, please don't use
abbreviations like "u" and "r" for "you" and "are"; it makes your
article much more difficult to read (or, if you prefer, t mks yr rtcl
mch mr dffclt t rd).

Finally, if I understand you correctly, you're mistaken. There was a
previous thread involving a variable called "aGroup", but it was an
array, not a pointer. Initializing an char array with a string
literal doesn't make the array read-only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,432
Latest member
GTRNorbert

Latest Threads

Top