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 / kracekumar
01010101010101
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can I sort a linked list?
What is difference between union and structure in c?
What is the difference between struct and typedef struct in c?
What is identifier in c?
What is a memory leak? How to avoid it?
What is c method?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Does c have function or method?
Explain the difference between the local variable and global variable in c?
What is the purpose of main( ) in c language?
What is the purpose of sprintf?
What is the difference between #include
How will you find a duplicate number in a array without negating the nos ?
How to find a missed value, if you want to store 100 values in a 99 sized array?
The __________ attribute is used to announce variables based on definitions of columns in a table?