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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have a written test for microland please give me test pattern

2734


What are the 4 types of unions?

1046


What is the Purpose of 'extern' keyword in a function declaration?

1084


What is the use of bit field?

1184


What is clrscr in c?

1137


How do you determine a file’s attributes?

1088


What is realloc in c?

1115


number of times a digit is present in a number

2039


Explain the difference between malloc() and calloc() function?

1057


Explain main function in c?

1084


What is advantage of pointer in c?

1193


Write a program to print all permutations of a given string.

1201


what are the different storage classes in c?

1184


Why doesn't C support function overloading?

2776


What are header files why are they important?

1095