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


WAP to find that given no is small or capital

Answers were Sorted based on User's Feedback



WAP to find that given no is small or capital..

Answer / pinky

main()
{
char ch;
scanf("%c",&ch);
if(ch>64&&ch<91)
printf("capital");
else
printf("small");
}
in scanf fn. it must be '%c' otherwise the ans wl be 'small'
always (check it)

Is This Answer Correct ?    1 Yes 0 No

WAP to find that given no is small or capital..

Answer / naresh.s

main()
{
char ch;
scanf("%d",&ch);
if(ch>64&&ch<91)
printf("capital");
else
printf("small");
}

Is This Answer Correct ?    2 Yes 2 No

WAP to find that given no is small or capital..

Answer / mukesh

how a number could be small or CAPITAL

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

write a program to swap Two numbers without using temp variable.

75 Answers   EMC, Focus, GreyB, HCL, Hitech, HP, Huawei, Infosys, Mannar Company, Microsoft, Miles Software, Odessa Technologies, Satyam, TCS, Wipro,


write a c program to convert fahrenheit to celsius?

4 Answers   TCS,


main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 Answers  


Explain how to reverse singly link list.

0 Answers  


write a program to generate 1st n fibonacci prime number

12 Answers  


What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?

1 Answers  


write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .

1 Answers   Subex,


How do you use a pointer to a function?

0 Answers  


Why preprocessor should come before source code?

2 Answers  


What are the uses of pre-processor directives?

2 Answers  


What does double pointer mean in c?

0 Answers  


What is the use of #define preprocessor in c?

0 Answers  


Categories