Answer Posted / joe
#include<stdio.h>
//#include<conio.h>
main()
{
//clrscr();
int a;
printf("\nenter the no\n");
scanf("%d",&a);
evenNum(&a);
}
evenNum(int *i)
{
if(*i <0)
{
printf("\nEnter correct number :\n");
}
else if(*i%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
main();
}
| Is This Answer Correct ? | 6 Yes | 18 No |
Post New Answer View All Answers
Why do we need volatile in c?
What is putchar() function?
In which header file is the null macro defined?
What does printf does?
What is the meaning of ?
can we implement multi-threads in c.
When should the volatile modifier be used?
What is the difference between the = symbol and == symbol?
find out largest elemant of diagonalmatrix
Is int a keyword in c?
Why c is called top down?
Can a variable be both const and volatile?
Write a C program to count the number of email on text
What is volatile variable in c with example?
Explain what is the heap?