?
What is the output of this program?
What is the output of this program?
#include<stdio.h>
#include<fcntl.h>
int main()
{
int fd, fd2, ret;
fd = open("hello.c",O_RDONLY);
ret = close(fd2);
printf("%d\n",ret);
}
#include<stdio.h>
#include<fcntl.h>
int main()
{
int fd, fd2, ret;
fd = open("hello.c",O_RDONLY);
ret = close(fd2);
printf("%d\n",ret);
}
Join the Discussion
Login to post a comment or share your explanation.
Login