Richard Heathfield said:
Phil said:
Richard Heathfield said:
Riyad wrote:
Hi,
I'm a student of IUT.
My question is - "What is string constant?"
Correct.
Only partly
char *what="what";
char wot[]="wot?";
wot[2]='u';
One of the strings is indeed constant, but the other one varies,
No, the content of one element in the 'wot' array varies.
The wot array does contain precisely a contiguous sequence of
characters terminated by, and including, a null character. We
have a short hand term for objects that have that property.
Perhaps a smiley was required...
Him: What, is string constant?
You: Correct.
Me: No - not all string constant!
I program C very well - I learn it from a book!
Phil