How do I convert a string to all upper or lower case?
Answer / Anant Singh
To convert a string to uppercase, you can use the `toupper()` function. To convert a string to lowercase, you can use the `tolower()` function. Here's an example of converting a string to uppercase:nn```cn#include <stdio.h>n#include <ctype.h>nnint main() {n char str[] = "Hello World!";n int i = 0;n while(str[i] != '