. 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 |
Write a program to reverse a string.
0 Answers Global Logic, iNautix, TCS, Wipro,
What is the acronym for ansi?
#include<stdio.h> { printf("Hello"); } how compile time affects when we add additional header file <conio.h>.
What are c preprocessors?
What are structure members?
Tell me with an example the self-referential structure?
What are conditional operators in C?
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is static identifier?
Name the language in which the compiler of "c" in written?