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. . . . .