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 / vijay r15
error undefined
function fork and wait
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is far pointer in c?
What is #line?
can we change the default calling convention in c if yes than how.........?
Why do we use main function?
what is a function method?give example?
What is data structure in c programming?
What is the deal on sprintf_s return value?
What is main function in c?
What is s or c?
What is the use of putchar function?
What are the advantage of c language?
Can we use visual studio for c?
How many bytes are occupied by near, far and huge pointers (dos)?
What is a struct c#?
Is c a great language, or what?