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
Write a C program in Fibonacci series.
What is variables in c?
Can you apply link and association interchangeably?
What are preprocessor directives in c?
Write a program to print “hello world” without using semicolon?
Can a pointer be static?
What is the sizeof () a pointer?
writ a program to compare using strcmp VIVA and viva with its output.
Is it fine to write void main () or main () in c?
What is equivalent to ++i+++j?
cavium networks written test pattern ..
What is the purpose of ftell?
Why do we need a structure?
What are the valid places to have keyword “break”?
difference between native and cross compilers