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 #line?
What is difference between structure and union in c programming?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Explain why can’t constant values be used to define an array’s initial size?
What is the purpose of 'register' keyword?
In a switch statement, what will happen if a break statement is omitted?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
How can I open a file so that other programs can update it at the same time?
What is the difference between local variable and global variable in c?
How can I ensure that integer arithmetic doesnt overflow?
Explain what is the difference between null and nul?
What is difference between structure and union?
How can you allocate arrays or structures bigger than 64K?
Why should I prototype a function?
What is signed and unsigned?