write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)
Answer Posted / vignesh1988i
sorry , just change printf() as.... printf("0 - even number \t 1 - odd number \n ");
thank u
| Is This Answer Correct ? | 12 Yes | 19 No |
Post New Answer View All Answers
What is the maximum no. of arguments that can be given in a command line in C.?
What are the difference between a free-standing and a hosted environment?
Do you know pointer in c?
What are the storage classes in C?
What is the difference between near, far and huge pointers?
What are pragmas and what are they good for?
Differentiate between the expression “++a” and “a++”?
Write a program to reverse a given number in c?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is the translation phases used in c language?
What are the c keywords?
number of times a digit is present in a number
What is meant by initialization and how we initialize a variable?
What is the difference between struct and typedef struct in c?