. Explain the differences between fork() and exec() in C
Answers were Sorted based on User's Feedback
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 |
Answer / glibwaresoftsolutions
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 |
How can I invoke another program from within a C program?
write a program to copy a string without using a string?
What is the meaning of int *x[]();?
When should a type cast not be used?
Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list?
When c language was developed?
write a program to print largest number of each row of a 2D array
while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }