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 sizeof array in c?
What are header files and explain what are its uses in c programming?
How can I avoid the abort, retry, fail messages?
Explain the difference between structs and unions in c?
Explain what are run-time errors?
What is structure padding in c?
Are bit fields portable?
What is the role of this pointer?
How do you use a pointer to a function?
Who developed c language?
What is a program flowchart?
Why ca not I do something like this?
What is oops c?
What Is The Difference Between Null And Void Pointer?
What is maximum size of array in c?