Rewrite the following code to compile and execute correctly:
#include
int main(void)
{
char stg[50];
stg = “ice cream sandwich”;
printf(“%s\n”, toupper(stg));
return 0;
}
If the char array stg is set to “ Moonlight Sonata “ in a program, reassign stg after
removing all leading and trailing whitespace from the string.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here