. 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 is a constant and types of constants in c?
What is the argument of a function in c?
What is the difference between local variable and global variable in c?
What is difference between far and near pointers?
Can include files be nested? How many levels deep can include files be nested?
Why is c called c not d or e?
What are the types of type qualifiers in c?
show how link list can be used to repersent the following polynomial i) 5x+2
What is the use of header?
What is the use of a conditional inclusion statement in C?
The file stdio.h, what does it contain?
In a header file whether functions are declared or defined?
What is the use of a ‘ ’ character?
What is 1f in c?
Write a C program to count the number of email on text