Rewrite the following code to compile and execute correctly: #include #include int main(void) { char stg[50]; stg = “ice cream sandwich”; printf(“%s\n”, toupper(stg)); return 0; }  If the char array...


Rewrite the following code to compile and execute correctly:


#include


#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.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here