. 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
Where we use clrscr in c?
What does static variable mean in c?
What does it mean when a pointer is used in an if statement?
what is the syallabus of computer science students in group- 1?
What does volatile do?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is scope rule of function in c?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Can static variables be declared in a header file?
What is the size of a union variable?
Disadvantages of C language.
all c language question
What are volatile variables in c?
What is the purpose of macro in C language?
How can I read in an object file and jump to locations in it?