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...

accept character from keyboard untill the user presses the
enter key.If the user enters any character other than upper
case(A-Z)alphabets program should stop taking any input

Answer Posted / shrikantauti

use if condition
if(ch>=65 &&ch<=90)
{
scanf("%c",&ch);
}
else
{
break;
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an array be an Ivalue?

1051


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1139


Why does this code crash?

1026


Explain how can I avoid the abort, retry, fail messages?

989


What is the difference between array and linked list in c?

1079


How can a string be converted to a number?

962


What is function prototype in c with example?

999


What is pointer to pointer in c?

1055


What are the back slash character constants or escape sequence charactersavailable in c?

1120


What are c identifiers?

1038


Why do we need arrays in c?

1076


How can you find the exact size of a data type in c?

949


Is exit(status) truly equivalent to returning the same status from main?

1007


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2317


Explain how are portions of a program disabled in demo versions?

1068