Please give me clear idea about these following declaration.const char *q="hello";*q='m';/*error*/q="bye";char const *s="hello";*s='m';/*error*/s="bye";char *const t="hello";*t='m';/*works*/t="bye";/*error*/
-
Interview Candidate
- Jul 14th, 2006
- 3
- 2216
Showing Answers 1 - 3 of 3 Answers
Please give me clear idea about these following declaration.const char *q="hello";*q='m';/*error*/q="bye";char const *s="hello";*s='m';/*error*/s="bye";char *const t="hello";*t='m';/*works*/t="bye";/*error*/