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



accept character from keyboard untill the user presses the enter key.If the user enters any charac..

Answer / 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

More C Interview Questions

How old is c programming language?

0 Answers  


What is wrong with this initialization?

0 Answers  


How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

6 Answers   Adobe, Huawei,


What is the scope of static variable in c?

0 Answers  


20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????

2 Answers  


multiple of 9 without useing +,* oprator

3 Answers  


write a program to produce the following output; ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A

17 Answers   ABC, College School Exams Tests,


without using control structures and control structures find the max and min of given 2 nos

1 Answers   HCL,


in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n

1 Answers  


Write a program for finding factorial of a number.

0 Answers   Tech Mahindra,


What is a const pointer?

0 Answers  


What is difference between union and structure in c?

0 Answers  


Categories