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
explain what is a newline escape sequence?
What is malloc() function?
Explain About fork()?
What is function definition in c?
What is the basic structure of c?
What is use of pointer?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Explain what is the benefit of using enum to declare a constant?
explain how do you use macro?
What is difference between arrays and pointers?
what is the diffrenet bettwen HTTP and internet protocol
What is header file definition?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What does %c do in c?
How to explain the final year project as a fresher please answer with sample project