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 assert and when would I use it?

1063


What are identifiers and keywords in c?

1198


Why n++ execute faster than n+1 ?

3146


Write a program to print fibonacci series without using recursion?

1218


Is c still used?

1097


application attempts to perform an operation?

2033


Can we increase size of array in c?

1012


What is a header file?

1135


What does the function toupper() do?

1192


What is modeling?

1097


Explain a file operation in C with an example.

1173


What are static variables in c?

1130


How would you obtain the current time and difference between two times?

1337


Can a file other than a .h file be included with #include?

1218


shorting algorithmS

2312