Nguyễn Đức Thành
New member
What is the output of this program?
A. 0
B. 1
C. -1
D. none of the mentioned
Code:
#include<stdio.h>
#include<fcntl.h>
int main()
{
int fd, fd2, ret;
fd = open("san.c",O_RDONLY);
ret = close(fd2);
printf("%d\n",ret);
}
B. 1
C. -1
D. none of the mentioned