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 putchar() function?
Can you define which header file to include at compile time?
What is the benefit of using an enum rather than a #define constant?
What are the different properties of variable number of arguments?
What is the purpose of main( ) in c language?
Explain the difference between structs and unions in c?
Why is structure padding done in c?
What are the differences between new and malloc in C?
How do you use a pointer to a function?
What is the use of void pointer and null pointer in c language?
Write programs for String Reversal & Palindrome check
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
any "C" function by default returns an a) int value b) float value c) char value d) a & b
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
Where static variables are stored in memory in c?