What is the output of this program?
#include<stdio.h>
int main()
{
fork();
printf("Example\n");
return 0;
}
#include<stdio.h>
int main()
{
fork();
printf("Example\n");
return 0;
}
A. the string "Example" will print 1 time
B. the string "Example" will print 2 times
C. the string "Example" will print 3 times
D. none of the mentioned
Answer: Option B
Join The Discussion