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
What is the use of volatile?
Explain how do you print only part of a string?
What tq means in chat?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Do you have any idea about the use of "auto" keyword?
Why does this code crash?
Is the exit() function same as the return statement? Explain.
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Explain what are the __date__ and __time__ preprocessor commands?
What is a structural principle?
Why C language is a procedural language?
How can I invoke another program or command and trap its output?
Is c language still used?
Why do we use int main?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures