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

What is wrong with this program statement? void = 10;

1266


Explain spaghetti programming?

1275


Why does everyone say not to use gets?

1118


Explain the advantages and disadvantages of macros.

1105


Explain bit masking in c?

1145


What are the different properties of variable number of arguments?

1168


What is the role of && operator in a program code?

1084


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2849


What is pointer and structure in c?

1198


what is reason of your company position's in india no. 1.

2347


What does a pointer variable always consist of?

1109


What does s c mean on snapchat?

1125


Write a program with dynamically allocation of variable.

1147


What are local static variables? How can you use them?

1159


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1227