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

Join The Discussion