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 do you understand by friend-functions? How are they used?

1178


Is exit(status) truly equivalent to returning the same status from main?

1029


Explain what is page thrashing?

1068


What standard functions are available to manipulate strings?

1107


Is Exception handling possible in c language?

2015


What is C language ?

1924


How can I split up a string into whitespace-separated fields?

1031


Why do we use main function?

1132


what do you mean by enumeration constant?

979


What is a floating point in c?

1035


What are the 4 types of programming language?

1083


If null and 0 are equivalent as null pointer constants, which should I use?

1158


What are the different data types in C?

1175


Wt are the Buses in C Language

3182


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2150