. 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 |
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?
Can u return two values using return keyword? If yes, how? If no, why?
main() { int i; printf("%d",i^i); }
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.
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
How many levels of pointers have?
What is difference between constant pointer and constant variable?
Why do we use c for the speed of light?
what are two kinds of java
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
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.