Write a C program to check a number even or odd, without using
any relational, arithmetic operator and any loops.



Write a C program to check a number even or odd, without using any relational, arithmetic operator..

Answer / geniuineprogrammer

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

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More C Interview Questions

How can we allocate array or structure bigger than 64kb?

2 Answers   CSC,


What is the advantage of a random access file?

0 Answers  


Determine if a number is a power of 2 at O(1).

2 Answers  


diff .between strcture and union

2 Answers  


How to declare a variable?

0 Answers  


What is the full form of getch?

0 Answers  


Explain what is the difference between text files and binary files?

0 Answers  


Program to find largest of three numbers without using comparsion operator?

3 Answers  


how to set Nth bit of variable by using MACRO

3 Answers   HCL,


What is #include stdio h and #include conio h?

0 Answers  


What library is sizeof in c?

0 Answers  


What is macro?

5 Answers   IBM,


Categories