ExamVeda
Login
Home
This question belongs to Computer Science Linux
Linux
?

For the below mentioned 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?

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.