Answer Posted / sameer.chaudhari
main()
{
int num;
printf("Plz enter the number :=> ");
scanf("%d",&num);
if (!(num & 1))
printf("Even");
getch();
}
| Is This Answer Correct ? | 41 Yes | 33 No |
Post New Answer View All Answers
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is I ++ in c programming?
Who is the main contributor in designing the c language after dennis ritchie?
number of times a digit is present in a number
What is register variable in c language?
Is array name a pointer?
Write a program to reverse a linked list in c.
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is line in c preprocessor?
How can you invoke another program from within a C program?
C program to find all possible outcomes of a dice?
What are local variables c?
Is null valid for pointers to functions?
What are structures and unions? State differencves between them.