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

write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)

Answer Posted / taesung kim

(number & 1) ? (odd) : (even);

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is break statement?

1124


Do pointers take up memory?

1160


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1688


How can you access memory located at a certain address?

1121


What are void pointers in c?

997


Explain what are reserved words?

1106


How can I prevent another program from modifying part of a file that I am modifying?

1061


What is string in c language?

1161


What are the functions to open and close the file in c language?

1041


What is the acronym for ansi?

1051


how to count no of words,characters,lines in a paragraph.

4430


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1106


The difference between printf and fprintf is ?

1289


Who invented b language?

1417


How can I trap or ignore keyboard interrupts like control-c?

1069