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 difference between %d and %i in c?
Why is c called c?
What header files do I need in order to define the standard library functions I use?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Explain what is a static function?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Why c language?
How do you determine a file’s attributes?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What are header files in c?
How do we make a global variable accessible across files? Explain the extern keyword?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is structure in c explain with example?
Can the “if” function be used in comparing strings?
What is the -> in c?