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


Please Help Members By Posting Answers For Below Questions

What does c in a circle mean?

575


Can true be a variable name in c?

555


Define the scope of static variables.

596


What is a double c?

584


What is the general form of a C program?

593






Define circular linked list.

565


What is the equivalent code of the following statement in WHILE LOOP format?

761


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

615


What are the two types of functions in c?

561


What are different types of operators?

590


Why can arithmetic operations not be performed on void pointers?

583


What is the deal on sprintf_s return value?

639


What is a pointer variable in c language?

641


What is a program flowchart and how does it help in writing a program?

653


Why c is called object oriented language?

576