Linux Search Pattern Question: Download Search Pattern PDF

What is the output of this program?

#include<stdio.h>
#include<fcntl.h>

int main()
{
int fd, fd2, ret;
fd = open("san.c",O_RDONLY);
ret = close(fd2);
printf("%dn",ret);
}
a) 0
b) 1
c) -1
d) none of the mentioned

Tweet Share WhatsApp