void main()
{
char str[15];
int i=0;
strcpy(str,_argv[1]);
for(i=0;i<=strlen(str);i++)
{
if(str[i]>=97&&str[i]<=122)
str[i]=str[i]-32;
}
printf("\nstring in uppercase : %s",str);
}
void main()
{
char str[15];
int i=0;
strcpy(str,_argv[1]);
for(i=0;i<=strlen(str);i++)
{
if(str[i]>=97&&str[i]<=122)
str[i]=str[i]-32;
}
printf("\nstring in uppercase : %s",str);
}
If you face any Problem in viewing code such as Incomplete "For Loops" or "Incorrect greater than or smaller" than equal to signs then please collect from My Web Site CLICK HERE
More Useful Topics... |
|
No comments:
Post a Comment