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
Why c is called procedure oriented language?
i got 75% in all semester am i eligible for your company
What is the difference between exit() and _exit() function in c?
What are the types of operators in c?
What is the data segment that is followed by c?
Explain c preprocessor?
Why is sizeof () an operator and not a function?
What standard functions are available to manipulate strings?
Why isnt there a numbered, multi-level break statement to break out
What is an lvalue?
If errno contains a nonzero number, is there an error?
When should a far pointer be used?
Differentiate Source Codes from Object Codes
Which of these functions is safer to use : fgets(), gets()? Why?
I have seen function declarations that look like this