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
Is c is a low level language?
What will be your course of action for a push operation?
What is the purpose of the preprocessor directive error?
What is the c value paradox and how is it explained?
What is use of bit field?
What is the benefit of using an enum rather than a #define constant?
Can the curly brackets { } be used to enclose a single line of code?
What is dynamic dispatch in c++?
Why use int main instead of void main?
What is signed and unsigned?
What is a file descriptor in c?
What is default value of global variable in c?
What are predefined functions in c?
What is the difference between printf and scanf in c?
What is a memory leak? How to avoid it?