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 string in c language?
Explain how do you sort filenames in a directory?
Find MAXIMUM of three distinct integers using a single C statement
What are the uses of a pointer?
What is a stream in c programming?
What does %p mean?
What is the difference between exit() and _exit() function?
What is #define used for in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
what are the different storage classes in c?
p*=(++q)++*--p when p=q=1 while(q<=6)
Where register variables are stored in c?
Explain what is the benefit of using an enum rather than a #define constant?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What is the time and space complexities of merge sort and when is it preferred over quick sort?