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
Why can’t constant values be used to define an array’s initial size?
How can I run c program?
What are the general description for loop statement and available loop types in c?
What language is c written?
Write the control statements in C language
What are data types in c language?
praagnovation
What are runtime error?
Explain why c is faster than c++?
What is boolean in c?
Explain how do you print an address?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What are unions in c?
Explain what is wrong with this program statement?
What are near, far and huge pointers?