Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answer Posted / shiv kumar
(num/2==0)? printf("even"):printf("odd");
Is This Answer Correct ? | 20 Yes | 7 No |
Post New Answer View All Answers
What does c in a circle mean?
Can true be a variable name in c?
Define the scope of static variables.
What is a double c?
What is the general form of a C program?
Define circular linked list.
What is the equivalent code of the following statement in WHILE LOOP format?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What are the two types of functions in c?
What are different types of operators?
Why can arithmetic operations not be performed on void pointers?
What is the deal on sprintf_s return value?
What is a pointer variable in c language?
What is a program flowchart and how does it help in writing a program?
Why c is called object oriented language?