. 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


Please Help Members By Posting Answers For Below Questions

What does double pointer mean in c?

675


What is the difference between far and near ?

799


How would you use the functions fseek(), freed(), fwrite() and ftell()?

795


What is identifier in c?

653


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3816






How old is c programming language?

679


How do you list a file’s date and time?

716


What is the difference between strcpy() and memcpy() function in c programming?

727


How arrays can be passed to a user defined function

672


How do you print only part of a string?

694


Write a program to check palindrome number in c programming?

691


What is structure in c definition?

673


Is c is a middle level language?

696


How do I swap bytes?

723


What is a pointer in c plus plus?

796