What is the output of the following program
#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}
Answer Posted / vignesh1988i
01 finally i will have 2
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How do I send escape sequences to control a terminal or other device?
Can a program have two main functions?
What is define directive?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Explain what’s a signal? Explain what do I use signals for?
What do you mean by keywords in c?
What is a loop?
What are the 5 types of inheritance in c ++?
What is the difference between variable declaration and variable definition in c?
What are qualifiers?
find out largest elemant of diagonalmatrix
What are the different types of C instructions?
What is difference between stdio h and conio h?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is sizeof int in c?