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 main function is special give two reasons?
What are 3 types of structures?
What does return 1 means in c?
What is your stream meaning?
Are there namespaces in c?
What is the meaning of 2d in c?
Tell me is null always defined as 0(zero)?
what is stack , heap ,code segment,and data segment
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What should malloc() do?
Explain what will the preprocessor do for a program?
What is typedef example?
What is the ANSI C Standard?
What is the difference between union and anonymous union?
What is difference between array and structure in c?