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 / vignesh1988i
01 finally i will have 2
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is break in c?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
How can this be legal c?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
program for reversing a selected line word by word when multiple lines are given without using strrev
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
Explain the difference between null pointer and void pointer.
What happens if a header file is included twice?
What is pointer and structure in c?
What is the value of h?
What are terms in math?
What are the back slash character constants or escape sequence charactersavailable in c?
What are structure types in C?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
what is event driven software and what is procedural driven software?