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

What does char * * argv mean in c?

1074


Where local variables are stored in c?

1013


regarding pointers concept

2052


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

1073


Hai what is the different types of versions and their differences

1945


What is the use of ?

1045


How can I manipulate strings of multibyte characters?

1116


Write a program to check armstrong number in c?

1136


What is difference between union and structure in c?

1177


What are header files why are they important?

1097


What is the difference between #include and #include 'file' ?

1072


I have seen function declarations that look like this

1052


What are pointers really good for, anyway?

1072


What is string in c language?

1167


What is the purpose of macro in C language?

1127