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
In c language can we compile a program without main() function?
Explain how do you list files in a directory?
how to execute a program using if else condition and the output should enter number and the number is odd only...
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is the difference between functions getch() and getche()?
What is the use of parallelize in spark?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
What is modeling?
What are the different properties of variable number of arguments?
What is merge sort in c?
What is double pointer in c?
How many levels of indirection in pointers can you have in a single declaration?
Explain bitwise shift operators?
What is hashing in c language?