ProAnswers.org

Write a C program to convert lower case string to upper case string?

#include

#include 

#include 

void main() 

{ 

char upper[15]; 

clrscr(); 

printf(“

Enter a string in lower case:”);

gets(upper); 

printf(“After strupr();%s”, strupr(upper)); 

getch(); 

} 

Output: 

Enter a string in lower case: abcdefg 

After strupr(): ABCDEFG