char *c = "H'eLo";
for (int i = 0; i < 5; i++)
{
if (isupper(c[i]))
{
c[i] = tolower(c[i]);
printf("%c \n", c[i]);
}
}
So I am running this code, and trying to figure out what I am doing wrong. What is the reason for the segmentation fault?