char * printstring(void)
{
return "my string";
}
Since what the function does is return a character array why do I have to state that my function returns char* and not char[] at the declaration.
char * printstring(void)
{
return "my string";
}
Since what the function does is return a character array why do I have to state that my function returns char* and not char[] at the declaration.