What is the output of this program?
#include<stdio.h>
int main()
{
int fd_socket;
fd_socket = socket(AF_UNIX,SOCK_STREAM,0);
printf("%d\n",fd_socket);
return 0;
}
#include<stdio.h>
int main()
{
int fd_socket;
fd_socket = socket(AF_UNIX,SOCK_STREAM,0);
printf("%d\n",fd_socket);
return 0;
}A. -1
B. 0
C. any integer value
D. none of the mentioned
Answer: Option D

Join The Discussion