Here's a question I was asked. Am I right so far?
10. Indicate using ticks and crosses which of the following string variable declarations are valid and self-consistent.
char s[]=”Hello”; Yes
char s[]; Yes
char s[6]; Yes
char s[5]=“Hello”; No
char *s=”Hello”; No
Please let me know if I'm right or wrong and what the hell the last one is supposed to be ?
Cheers.
Gaz.