Can anyone explain to me why this simple program won't print anything?
#include <stdio.h>
#include <ctype.h>
char * mkUpperCase(char *);
int main(void)
{
char name[] = "information";
printf("%s\n", mkUpperCase(name));
return 0;
}
char * mkUpperCase(char *s)
{
while(*s != '\0')
{
*s = toupper(*s);
s++;
}
return s;
}