This program is supposed to take a user input string and change lower case characters to upper case and vice versa. It works except that for spaces between words it puts @ and then it adds some weird characters at the end of every string. What is wrong?
printf("Enter any string:");
printf("Proper capitalisation is of great importance\n");