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

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1475


Can the curly brackets { } be used to enclose a single line of code?

709


How can I open a file so that other programs can update it at the same time?

655


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

590


Write the syntax and purpose of a switch statement in C.

618






What is the difference between break and continue?

604


Explain how do you declare an array that will hold more than 64kb of data?

899


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

575


What would be an example of a structure analogous to structure c?

574


Explain zero based addressing.

604


Is it valid to address one element beyond the end of an array?

670


What is advantage of pointer in c?

687


What is character constants?

711


What is the purpose of the statement: strcat (S2, S1)?

638


What is build process in c?

643