Consider the following C program.
#include <stdio.h>
int main() {
int i;
for (i=0;i<3;++i) {
fork();fork();
}
}
How many processes are created when running this program
(including the initial one)?
Explain

Answer Posted / arati

3

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use conio h in c?

588


Explain the properties of union. What is the size of a union variable

718


What is I ++ in c programming?

629


What are the different categories of functions in c?

648


What are linked lists in c?

651






Explain modulus operator. What are the restrictions of a modulus operator?

600


What is meant by recursion?

632


What is pointer & why it is used?

605


Tell me what is the purpose of 'register' keyword in c language?

620


What is FIFO?

677


What happens if a header file is included twice?

601


What is the difference between exit() and _exit() function in c?

584


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1203


What is the full form of getch?

585


How can you draw circles in C?

626