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
Write a code to generate a series where the next element is the sum of last k terms.
Explain modulus operator. What are the restrictions of a modulus operator?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is openmp in c?
What is the use of #include in c?
What is assignment operator?
What is c++ used for today?
What is use of integral promotions in c?
What is p in text message?
What is the difference between the = symbol and == symbol?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Write a program to print fibonacci series using recursion?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What are identifiers in c?
Explain high-order bytes.