write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)
Answer Posted / dheerendra
logic
main()
{
int a;
(a%2==0)?printf("even"):printf("odd")
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
When would you use a pointer to a function?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Explain the properties of union. What is the size of a union variable
Add Two Numbers Without Using the Addition Operator
How can I call fortran?
What is sizeof int in c?
How can you find the exact size of a data type in c?
What is the process of writing the null pointer?
Can we replace the struct function in tree syntax with a union?
What is maximum size of array in c?
What are directives in c?
What are disadvantages of C language.
What is meant by preprocessor in c?
Why is structure important for a child?
What is cohesion in c?