For the below mentioned code, [code] int main() { int fd; fd = open(“logfile”, O_CREAT|O_RDWR, 0600);

Stasenndb

New member
For the below mentioned code,
Code:
   int main() 
   {
        int fd;
        fd = open(“logfile”, O_CREAT|O_RDWR, 0600);
        lseek(fd, 5, SEEK_CUR);
        write(fd, “Hello”, 5);
        return 0;
    }
What is the logfile size now if it’s initially was 1024 bytes?
A. 5
B. 1024
C. 1029
D. 1034
 

Tìm kiếm

Back
Top