. Write a program to get a string and to convert the 1st
letter of it to uppercase
Answer Posted / kiran
void main()
{
char str[20];
int i=0;
printf("Enter your name : ");
gets(name);
if(str[i] >= 97 && str[i]<=122)
str[i] = str[i] - 32;
printf("The new String is %s",str);
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What does char * * argv mean in c?
Where local variables are stored in c?
regarding pointers concept
What is the use of a conditional inclusion statement in C?
Hai what is the different types of versions and their differences
What is the use of ?
How can I manipulate strings of multibyte characters?
Write a program to check armstrong number in c?
What is difference between union and structure in c?
What are header files why are they important?
What is the difference between #include and #include 'file' ?
I have seen function declarations that look like this
What are pointers really good for, anyway?
What is string in c language?
What is the purpose of macro in C language?