. 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
Is there sort function in c?
Why do we use pointer to pointer in c?
What are data types in c language?
what are the different storage classes in c?
Compare interpreters and compilers.
How do I send escape sequences to control a terminal or other device?
Why main is used in c?
What does %d do in c?
What are the scope of static variables?
What is c definition?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Where are some collections of useful code fragments and examples?
Write a c program to build a heap method using Pointer to function and pointer to structure ?