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
What is wrong with this program statement? void = 10;
Explain spaghetti programming?
Why does everyone say not to use gets?
Explain the advantages and disadvantages of macros.
Explain bit masking in c?
What are the different properties of variable number of arguments?
What is the role of && operator in a program code?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is pointer and structure in c?
what is reason of your company position's in india no. 1.
What does a pointer variable always consist of?
What does s c mean on snapchat?
Write a program with dynamically allocation of variable.
What are local static variables? How can you use them?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above