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
What are disadvantages of C language.
Why do we use return in c?
What is string constants?
main() { printf("hello"); fork(); }
What is break statement?
How can I discover how many arguments a function was actually called with?
What are the 4 types of unions?
What is an expression?
What is derived datatype in c?
What are the types of data structures in c?
Explain what’s a signal? Explain what do I use signals for?
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 will the preprocessor do for a program?
What is static volatile in c?
Explain what are the advantages and disadvantages of a heap?