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
What are the types of c language?
Whats s or c mean?
Can you please explain the difference between malloc() and calloc() function?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Is fortran faster than c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
Explain the Difference between the New and Malloc keyword.
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Why does this code crash?
How many types of arrays are there in c?
what is the function of pragma directive in c?
In c language can we compile a program without main() function?
Write a C program in Fibonacci series.
What is extern keyword in c?
Explain what will the preprocessor do for a program?