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
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What is a null string in c?
What are the different types of constants?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What do you mean by command line argument?
What is the difference between typedef and #define?
Explain what are global variables and explain how do you declare them?
What is an auto keyword in c?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Do pointers take up memory?
What are the primitive data types in c?
What is the need of structure in c?
What are categories used for in c?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Can 'this' pointer by used in the constructor?