Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

. 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

Is there sort function in c?

967


Why do we use pointer to pointer in c?

1019


What are data types in c language?

1009


what are the different storage classes in c?

1119


Compare interpreters and compilers.

1027


How do I send escape sequences to control a terminal or other device?

1013


Why main is used in c?

1009


What does %d do in c?

907


What are the scope of static variables?

1115


What is c definition?

1194


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2077


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1326


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1075


Where are some collections of useful code fragments and examples?

1106


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4621