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 a dynamic array in c?
List the variables are used for writing doubly linked list program.
What are the advantages of Macro over function?
Differentiate between full, complete & perfect binary trees.
What are type modifiers in c?
What is anagram in c?
What is the difference between procedural and declarative language?
Tell us two differences between new () and malloc ()?
Explain about the functions strcat() and strcmp()?
What is the meaning of typedef struct in c?
Why main function is special give two reasons?
what is the significance of static storage class specifier?
what are bit fields? What is the use of bit fields in a structure declaration?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
if p is a string contained in a string?