const Examples
then the following uses are wrong
x=999; /* ERROR, illegal lvalue */
++x; /* ERROR illegal lvalue */
The prototype declaration for strcat is (in <string.h>)
- char* strcat(char *s1, const char *s2);
-
strcat() takes a (const) s2 and concatenate it to s1. const char *s2 guarantees that strcat() will not change s2.