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
What is malloc calloc and realloc in c?
What is a program?
What will be the outcome of the following conditional statement if the value of variable s is 10?
Can we assign integer value to char in c?
What are register variables in c?
How do I use void main?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What is the difference between a function and a method in c?
What is the use of void pointer and null pointer in c language?
Are pointers integers in c?
What is modifier & how many types of modifiers available in c?
Can a pointer be static?
What is difference between main and void main?
How can I generate floating-point random numbers?
Explain setjmp()?