. Explain the differences between fork() and exec() in C



. Explain the differences between fork() and exec() in C..

Answer / nashiinformaticssolutions

1. fork(): Creates a new process (child) identical to the parent process.
2. exec(): Replaces the current process image with a new program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

1. Can we use the for loop this way? for(;i>5;) 2. What is the use of pointers? 3. what is array of pointer? 4. What is the difference between file and database? 5. Define data structure?

1 Answers  


Can u return two values using return keyword? If yes, how? If no, why?

7 Answers  


main() { int i; printf("%d",i^i); }

1 Answers  


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.

0 Answers   Wilco,


I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?

3 Answers  






How many levels of pointers have?

0 Answers  


What is difference between constant pointer and constant variable?

0 Answers   Hexaware,


Why do we use c for the speed of light?

0 Answers  


what are two kinds of java

2 Answers  


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

0 Answers  


main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?

9 Answers   Ramco,


Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.

3 Answers   Google,


Categories