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
Write a program that accept anumber in words
What is logical error?
show how link list can be used to repersent the following polynomial i) 5x+2
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
What is the scope of static variable in c?
What is the benefit of using #define to declare a constant?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What are local static variables? How can you use them?
Can we declare function inside main?
Is flag a keyword in c?
Explain modulus operator. What are the restrictions of a modulus operator?
What is use of pointer?
Explain how do you sort filenames in a directory?
What is the process to create increment and decrement stamen in c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?