Linux Debugging Questions & Answers – dup, fcntl, lseek and read System Calls
This set of Linux Debugging questions and answers focuses on dup, fcnlt, lseek and read System Calls. 1. What is the output of this program? #include<stdio.h> #include<fcntl.h> int main() { pid_t fd; char ch; int count; fd = open("san.c",O_RDONLY); do{ count = read(fd,&ch,1); printf("%c",ch); }while(count); return 0; } a) it will print nothing b) it … Read more