Course Solutions Uncategorized (Solved) : Language C T Set P S See Know Static Chars Must Set Literal Constants Like 0xff Like Speci Q26401787 . . . .

(Solved) : Language C T Set P S See Know Static Chars Must Set Literal Constants Like 0xff Like Speci Q26401787 . . . .

 

Language C:

Why can’t we set *p = *s (see below)?

I know that static chars must be set to literal constants like’a’ or 0xFF, but like specifically why can’t we set it equal to anonliteral constant, is it because we aren’t guaranteed theconstant won’t be changed if it isn’t a literal value?

char *strtok(char *s, const char *sep) 2 { 3 static char *p = NULL;

……}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post