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


Please Help Members By Posting Answers For Below Questions

What is far pointer in c?

988


What is #line?

797


can we change the default calling convention in c if yes than how.........?

2262


Why do we use main function?

868


what is a function method?give example?

2092






What is data structure in c programming?

766


What is the deal on sprintf_s return value?

815


What is main function in c?

748


What is s or c?

773


What is the use of putchar function?

813


What are the advantage of c language?

738


Can we use visual studio for c?

745


How many bytes are occupied by near, far and huge pointers (dos)?

885


What is a struct c#?

756


Is c a great language, or what?

825