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
Which header file is essential for using strcmp function?
What is the use of getchar functions?
What is scope rule in c?
The file stdio.h, what does it contain?
What is nested structure in c?
What is abstract data structure in c?
How does selection sort work in c?
How can I do peek and poke in c?
Why double pointer is used in c?
What is difference between structure and union with example?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is the purpose of scanf() and printf() functions?
What are the differences between Structures and Arrays?
Can a pointer point to null?
When can you use a pointer with a function?