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

Is sizeof a keyword in c?

965


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1130


What is the difference between array and pointer in c?

1158


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1692


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1586


What is #define in c?

1044


What is spark map function?

1125


What is s in c?

1047


where are auto variables stored? What are the characteristics of an auto variable?

1067


How will you delete a node in DLL?

1286


find out largest elemant of diagonalmatrix

2245


Why c is called procedure oriented language?

1038


What are the 5 data types?

1125


What is a function simple definition?

1093


What happens if you free a pointer twice?

1068