Forum: Java Sep 14th, 2004 |
| Replies: 6 Views: 5,495 Re: reading a file into code Description: C program to test text file reading.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define CR 13 /* Decimal code of Carriage Return char... |
Forum: Java Sep 13th, 2004 |
| Replies: 9 Views: 2,151 |
Forum: C++ Sep 13th, 2004 |
| Replies: 1 Views: 1,704 |
Forum: C Sep 13th, 2004 |
| Replies: 7 Views: 4,498 Re: ambgious part 3 Fork is a function that creates a new process.A process is a program in execution.What fork() does is that it creates a new process copying the code segment.It also returns pid to identify the... |
Forum: C Sep 13th, 2004 |
| Replies: 7 Views: 4,498 Re: ambgious part 3 Its output will be mainmainmain.The reason behind this is that whenever we call fork a new process is created.The PC points(in the new process) to the instruction after the fork.So we can say that... |