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 %g in c?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Is there sort function in c?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What does the message "automatic aggregate intialization is an ansi feature" mean?
Explain what are the advantages and disadvantages of a heap?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Explain void pointer?
Why & is used in scanf in c?
Is there any data type in c with variable size?
Explain output of printf("Hello World"-'A'+'B'); ?
What is methods in c?
When would you use a pointer to a function?
How can I generate floating-point random numbers?
Explain what is the most efficient way to store flag values?