write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)
Answer Posted / taesung kim
(number & 1) ? (odd) : (even);
| Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
What is break statement?
Do pointers take up memory?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
How can you access memory located at a certain address?
What are void pointers in c?
Explain what are reserved words?
How can I prevent another program from modifying part of a file that I am modifying?
What is string in c language?
What are the functions to open and close the file in c language?
What is the acronym for ansi?
how to count no of words,characters,lines in a paragraph.
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
The difference between printf and fprintf is ?
Who invented b language?
How can I trap or ignore keyboard interrupts like control-c?