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
write a program to rearrange the array such way that all even elements should come first and next come odd
What's the difference between constant char *p and char * constant p?
Does free set pointer to null?
c program to compute AREA under integral
What is stack in c?
What is the purpose of sprintf() function?
How can I write a function analogous to scanf?
Who is the founder of c language?
Can a variable be both constant and volatile?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
i have a written test for microland please give me test pattern
What is floating point constants?
What are the different types of errors?
Why do we use int main instead of void main in c?
Write a program to find the biggest number of three numbers in c?