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

To find whether a number is even or odd without using any
conditional operator??

Answer Posted / naveen

main ()
{
int num;
if ( num & 1 )
printf ("num is odd number\n");
else
printf ("num is even number\n");
}

Is This Answer Correct ?    21 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many identifiers are there in c?

961


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.

1623


What are nested functions in c?

975


What are the different properties of variable number of arguments?

1101


Is c weakly typed?

966


What will the preprocessor do for a program?

1014


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3857


Explain how can I avoid the abort, retry, fail messages?

989


How do I round numbers?

957


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1016


Write a program to find factorial of a number using recursive function.

1063


Which type of language is c?

1019


Where are local variables stored in c?

981


How do you construct an increment statement or decrement statement in C?

1175


What is an lvalue?

1013