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
Explain how can type-insensitive macros be created?
What is a pointer variable in c language?
What are the data types present in c?
When would you use a pointer to a function?
Write a program in c to replace any vowel in a string with z?
What is a ternary operator in c?
Why should I prototype a function?
What's the total generic pointer type?
Explain what is wrong in this statement?
What are the features of c languages?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What do you mean by dynamic memory allocation in c? What functions are used?
explain what are pointers?
Why doesn't C support function overloading?
What is the description for syntax errors?