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

Add Two Numbers Without Using the Addition Operator

882


How can I do serial ("comm") port I/O?

1217


What is volatile variable in c with example?

1091


What is the auto keyword good for?

1234


What is a program flowchart and explain how does it help in writing a program?

1362


ATM machine and railway reservation class/object diagram

5311


Between macros and functions,which is better to use and why?

2323


main() { printf("hello"); fork(); }

1251


How many levels deep can include files be nested?

1186


What is a structural principle?

1244


What is meant by int main ()?

1257


What is the use of header?

1143


What is the benefit of using an enum rather than a #define constant?

1323


Explain that why C is procedural?

1194


What is 02d in c?

1111