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
What is assert and when would I use it?
What are identifiers and keywords in c?
Why n++ execute faster than n+1 ?
Write a program to print fibonacci series without using recursion?
Is c still used?
application attempts to perform an operation?
Can we increase size of array in c?
What is a header file?
What does the function toupper() do?
What is modeling?
Explain a file operation in C with an example.
What are static variables in c?
How would you obtain the current time and difference between two times?
Can a file other than a .h file be included with #include?
shorting algorithmS