. 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 |
What is structure packing ?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
Explain what is the difference between null and nul?
Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?
What does #pragma once mean?
Can u return two values using return keyword? If yes, how? If no, why?
WHAT IS LOW LEVEL LANGUAGE?
related to rdbms query .
What is indirection in c?
how can i calculate mean,median,mode by using c program
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions