Examveda
Examveda

What is the output of this program?
#include<stdio.h>
#include<sys/socket.h>
int main()
{ 
    int ret;
    ret = shutdown(0,0);
    printf("%d\n",ret);
    return 0;
}

A. 0

B. -1

C. can not be determined

D. none of the mentioned

Answer: Option B


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux