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 / raghu
totally 8 processes...so each process will print 0 & 1
output: 0101010101010101
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
praagnovation
What are the features of c language?
what is the height of tree if leaf node is at level 3. please explain
Explain what is wrong with this program statement?
What is string constants?
What is .obj file in c?
Explain what are the standard predefined macros?
Explain how can I convert a string to a number?
What are lookup tables in c?
How to implement a packet in C
Is main is a keyword in c?
Can we assign string to char pointer?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Do you know pointer in c?
What does the && operator do in a program code?