Convert lowercase string to uppercase with C.
#include <stdio.h>
#include <string.h>
int main()
{
char str[100];
printf("Enter your text : ");
gets(str);
strupr(str); // Convert to uppercase
printf("Uppercase string : %s", str);
return 0;
}
Output
Enter your text : rezaul karim
Uppercase string : REZAUL KARIM
0 Comments