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
Explain the concept and use of type void.
Explain about C function prototype?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
is it possible to create your own header files?
What is pre-emptive data structure and explain it with example?
Explain the binary height balanced tree?
What is structure packing in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is structure and union in c?
How is null defined in c?
What is a void pointer? When is a void pointer used?
Is it possible to initialize a variable at the time it was declared?
What is the difference between malloc() and calloc() function in c language?
What are the types of macro formats?
Is Exception handling possible in c language?