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 check a number even or odd, without using
any relational, arithmetic operator and any loops.

Answer Posted / geniuineprogrammer

u can use bitwise operator
if (no & 1) {
its odd
}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %g in c?

1020


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

2160


Is there sort function in c?

969


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2023


What does the message "automatic aggregate intialization is an ansi feature" mean?

1143


Explain what are the advantages and disadvantages of a heap?

1032


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

983


Explain void pointer?

971


Why & is used in scanf in c?

1050


Is there any data type in c with variable size?

1033


Explain output of printf("Hello World"-'A'+'B'); ?

1431


What is methods in c?

1033


When would you use a pointer to a function?

993


How can I generate floating-point random numbers?

1041


Explain what is the most efficient way to store flag values?

1173