Examveda

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;
}

A. -1

B. 0

C. any integer value

D. none of the mentioned

Answer: Option D


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux