find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / guest
#include<stdio.h>
#include<conio.h>
void main()
{
int x;
if(x%2==0)
printf("even");
else
printf("odd");
getch();
}
| Is This Answer Correct ? | 4 Yes | 25 No |
Post New Answer View All Answers
Why header files are used?
How can you be sure that a program follows the ANSI C standard?
How is a pointer variable declared?
Explain what is operator promotion?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What does p mean in physics?
Tell us something about keyword 'auto'.
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is a pragma?
what do the 'c' and 'v' in argc and argv stand for?
What are register variables? What are the advantage of using register variables?
What does node * mean?
Give differences between - new and malloc() , delete and free() ?
Is c high or low level?
Why c is called procedure oriented language?