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
Why do we use return in c?
What is c language & why it is used?
List the difference between a "copy constructor" and a "assignment operator"?
Do you have any idea about the use of "auto" keyword?
What is the use of #define preprocessor in c?
What are the basic data types associated with c?
What is void main ()?
What is printf () in c?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
How do you define CONSTANT in C?
How do you print only part of a string?
What is the use of typedef in c?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Who developed c language?
What is the advantage of c?