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 / guest
0101010101
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
please give me some tips for the placement in the TCS.
What is null in c?
What are variables c?
How do you list a file’s date and time?
Lists the benefits of c programming language?
Is there any demerits of using pointer?
Is there anything like an ifdef for typedefs?
How can you convert integers to binary or hexadecimal?
Differentiate between the expression “++a” and “a++”?
What does malloc () calloc () realloc () free () do?
Is it better to use a macro or a function?
What is uint8 in c?
Explain the difference between getch() and getche() in c?
How many types of operators are there in c?
When should we use pointers in a c program?