0 votes
7
0 votes
11
1 votes
13
0 votes
14
2 votes
17
A process executes the following segment of code :for(i = 1; i <= n; i++) fork (); fork ();The number of new processes created is
1 votes
18
main() { if(fork()>=0) { printf("*"); if(fork()==0) { printf("*"); } else{ //do nothing } printf("*"); }How many number of times “*” will be printed?
1 votes
19
what is the output of the following program?int ret = fork(); if(ret == 0) { exec(some_binary); // this call fails printf("child "); }else { wait(); printf("parent\n"); }...
1 votes
21
void fun(int *p) { int q = 10; p = &q; z } int main() { int r = 20; int *p = &r; fun(p); printf("%d", *p); return 0; }