How many times printf() will be executed in the below mentioned program?

main() {
int i;

for (i = 0; i < 4; i++)
fork();

printf("my pid = %dn", getpid());
}

a) 4
b) 8
c) 16
d) 32

Submitted by: Murtaza
c) 16
Submitted by: Murtaza

Read Online Linux OS Management Job Interview Questions And Answers