Answer Posted / nirdesh pal
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
printf("enter the number");
scanf("%d",&i);
if(i%2==0)
{
printf("number is even");
else
printf("number is odd");
}
getch();
}
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Tell me the use of bit field in c language?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
When is a void pointer used?
How pointer is different from array?
What does void main () mean?
What is static memory allocation? Explain
What is string constants?
What is calloc() function?
how to find binary of number?
What are the complete rules for header file searching?
define string ?
What is #include called?
Explain what are the standard predefined macros?
Is null always equal to 0(zero)?
Why is c fast?