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
Is a house a shell structure?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Why ca not I do something like this?
What is pre-emptive data structure and explain it with example?
what are the facialities provided by you after the selection of the student.
Differentiate between the expression “++a” and “a++”?
Is fortran faster than c?
Is stack a keyword in c?
Explain the difference between the local variable and global variable in c?
Explain zero based addressing.
What are predefined functions in c?
When is a void pointer used?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What is the use of #include in c?