Answer Posted / joe
#include<stdio.h>
//#include<conio.h>
int main()
{
//clrscr();
int *a;
printf("\nenter the no\n");
scanf("%d",&a);
if(*a <0)
{
printf("\nEnter correct number :\n");
}
else if(*a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
main();
}
| Is This Answer Correct ? | 15 Yes | 15 No |
Post New Answer View All Answers
What is binary tree in c?
All technical questions
Explain how do you convert strings to numbers in c?
What is structure data type in c?
What are different types of operators?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
State the difference between realloc and free.
What are the types of data files?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is difference between stdio h and conio h?
Why should I prototype a function?
What are the different types of C instructions?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Explain the difference between #include "..." And #include <...> In c?