find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / om
void odd_even_check(int z)
{
(z&1)?printf("\nodd\n"):printf("\neven\n");
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What are 'near' and 'far' pointers?
What is the difference between ++a and a++?
shorting algorithmS
What is modifier & how many types of modifiers available in c?
What is a example of a variable?
What is #include cctype?
What is storage class?
What is the difference between exit() and _exit() function in c?
How do we make a global variable accessible across files? Explain the extern keyword?
Explain about block scope in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Explain how does flowchart help in writing a program?
What do you understand by friend-functions? How are they used?
Is c dynamically typed?
What is an lvalue in c?