strupr () function in c program
strupr () string function in c program :
The strupr( ) function is used to converts a given string to uppercase.
The strupr( ) function is used to converts a given string to uppercase.
Parameter:
- str: This represents the given string which we want to convert into uppercase.
Returns: It returns the modified string obtained after converting the characters of the given string str to uppercase.
Below programs illustrate the strupr() function in C:
Example :
Input : atikurrahman
Output : ATIKURRAHMAN
progrma code :
#include<stdio.h>
#include<string.h>
int main()
{
char sr[100];
printf("Enther the valu : ");
scanf("%s",&sr);
strupr(sr);
printf("%s",sr);
///printf("%s",strlwr(sr));
return 0;
}
Output :

No comments