Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answer Posted / kiran
main()
{
int n;
printf("enter the number");
scanf("%d",&n);
n%2==0?(printf("given number is even");):(printf("given
number is odd"););
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
define string ?
How do you redirect a standard stream?
What is the role of && operator in a program code?
Explain the properties of union. What is the size of a union variable
Explain void pointer?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What are the advantages of Macro over function?
What is the difference between variable declaration and variable definition in c?
What is c preprocessor mean?
What is atoi and atof in c?
Differentiate between calloc and malloc.
What is methods in c?
What is #pragma statements?
Explain high-order bytes.
What is the size of empty structure in c?