To find whether a number is even or odd without using any
conditional operator??
Answer Posted / naveen
main ()
{
int num;
if ( num & 1 )
printf ("num is odd number\n");
else
printf ("num is even number\n");
}
Is This Answer Correct ? | 21 Yes | 13 No |
Post New Answer View All Answers
Which are low level languages?
What is the difference between struct and union in C?
What is the difference between int main and void main?
What is merge sort in c?
hi, which software companys will take,if d candidate's % is jst 55%?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is the scope of local variable in c?
What is the collection of communication lines and routers called?
What is meant by realloc()?
I need a sort of an approximate strcmp routine?
What is a buffer in c?
Where are c variables stored in memory?
Explain what are global variables and explain how do you declare them?
How many types of operators are there in c?
Explain about the constants which help in debugging?