Write a C program to check a number even or odd, without using
any relational, arithmetic operator and any loops.
Answer / geniuineprogrammer
u can use bitwise operator
if (no & 1) {
its odd
}
Is This Answer Correct ? | 6 Yes | 1 No |
How can we allocate array or structure bigger than 64kb?
What is the advantage of a random access file?
Determine if a number is a power of 2 at O(1).
diff .between strcture and union
How to declare a variable?
What is the full form of getch?
Explain what is the difference between text files and binary files?
Program to find largest of three numbers without using comparsion operator?
how to set Nth bit of variable by using MACRO
What is #include stdio h and #include conio h?
What library is sizeof in c?
What is macro?