. 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 is a constant and types of constants in c?

590


What is the argument of a function in c?

561


What is the difference between local variable and global variable in c?

675


What is difference between far and near pointers?

593


Can include files be nested? How many levels deep can include files be nested?

645






Why is c called c not d or e?

598


What are the types of type qualifiers in c?

636


show how link list can be used to repersent the following polynomial i) 5x+2

1664


What is the use of header?

608


What is the use of a conditional inclusion statement in C?

588


The file stdio.h, what does it contain?

651


In a header file whether functions are declared or defined?

617


What is the use of a ‘’ character?

576


What is 1f in c?

1818


Write a C program to count the number of email on text

1401