Skip to content

Tag Archives: system-programming

Write a C program that doesn’t terminate when Ctrl+C is pressed. It prints a message “Cannot be terminated using Ctrl+c” and continues execution. We can… Read More
  A typical memory representation of a C program consists of the following sections.1. Text segment 2. Initialized data segment 3. Uninitialized data segment 4. Stack 5. Heap  A… Read More
Given a program on fork() system call. #include <stdio.h> #include <unistd.h> int main() {    fork();    fork() && fork() || fork();    fork();       printf("forked\n");    return 0;… Read More