NiceButDim
Programmer
I would be grateful if someone could answer what is a very basic, and hopefully simple, question;
The prototype of the strstr function is
char *strstr(const char *haystack, const char *needle);
What is the point of the const keyword in this case? why is the prototype not simply;
char *strstr(char *haystack, char *needle);
Thanks.
john.
The prototype of the strstr function is
char *strstr(const char *haystack, const char *needle);
What is the point of the const keyword in this case? why is the prototype not simply;
char *strstr(char *haystack, char *needle);
Thanks.
john.