. 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 double pointer mean in c?
What is the difference between far and near ?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is identifier in c?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
How old is c programming language?
How do you list a file’s date and time?
What is the difference between strcpy() and memcpy() function in c programming?
How arrays can be passed to a user defined function
How do you print only part of a string?
Write a program to check palindrome number in c programming?
What is structure in c definition?
Is c is a middle level language?
How do I swap bytes?
What is a pointer in c plus plus?