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
Is there any data type in c with variable size?
What is the main difference between calloc () and malloc ()?
Can a pointer be static?
Why void main is used in c?
What Is The Difference Between Null And Void Pointer?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How can I generate floating-point random numbers?
Why is c called a structured programming language?
How can you be sure that a program follows the ANSI C standard?
What is getche() function?
What is wild pointer in c with example?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is difference between scanf and gets?