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
Is sizeof a keyword in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is the difference between array and pointer in c?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is #define in c?
What is spark map function?
What is s in c?
where are auto variables stored? What are the characteristics of an auto variable?
How will you delete a node in DLL?
find out largest elemant of diagonalmatrix
Why c is called procedure oriented language?
What are the 5 data types?
What is a function simple definition?
What happens if you free a pointer twice?