What is the output of this program no 11?

int main()
int fd_server, fd_client, len, len_client;
struct sockaddr_in add_server;
fd_server = socket(AF_INET,SOCK_STREAM,0);
if(listen(fd_server,5) != 0)
fd_client = accept(fd_server,(struct sockaddr*)&add_server,&len);
if(fd_client == -1)
return 0;
a) syntax error
b) error at the time of compilation
c) segmentation fault
d) none of the mentioned

Submitted by: Murtaza
d) none of the mentioned
The program will not work properly because the file descriptor is not available in the for listen() and accept().
[root@localhost google]# gcc -o san san.c
[root@localhost google]# ./san
accept: Success
listen: Bad file descriptor
[root@localhost google]#
Submitted by: Murtaza

Read Online Linux Debugging Job Interview Questions And Answers