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

Explain can static variables be declared in a header file?

1157


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

1259


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

2131


What is the difference between printf and scanf in c?

1363


Tell us the use of fflush() function in c language?

1157


What is an array? What the different types of arrays in c?

1190


‎How to define structures? · ‎

1094


What is the Purpose of 'extern' keyword in a function declaration?

1085


Is c a great language, or what?

1123


What are the advantages of c preprocessor?

1268


What is a union?

1041


Is c easy to learn?

994


What is the benefit of using const for declaring constants?

1050


Is c language still used?

988


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

1227