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

What are local variables c?

963


Should a function contain a return statement if it does not return a value?

1024


Can a pointer be static?

1025


What are Macros? What are its advantages and disadvantages?

1095


What are qualifiers and modifiers c?

944


How arrays can be passed to a user defined function

969


Write a program in c to replace any vowel in a string with z?

1078


Which is an example of a structural homology?

1252


What are the different types of linkage exist in c?

977


What is #include stdlib h?

1057


Explain the use of 'auto' keyword

1075


Describe dynamic data structure in c programming language?

1043


Can you please explain the difference between syntax vs logical error?

1136


Explain the difference between strcpy() and memcpy() function?

952


write a program to print largest number of each row of a 2D array

2270