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
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What are the __date__ and __time__ preprocessor commands?
What is pointer to pointer in c language?
Write programs for String Reversal & Palindrome check
Can 'this' pointer by used in the constructor?
What are qualifiers in c?
What is the difference between a function and a method in c?
Why c is called procedure oriented language?
When is a void pointer used?
Why main is used in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is switch in c?
what do you mean by enumeration constant?
Explain what is a 'locale'?
Write a program to check whether a number is prime or not using c?