#include&lt;stdio.h&gt;   #include&lt;sys/types.h&gt;   #include&lt;sys/un.h&gt;   #include&lt;sys/socket.h&gt;&nbsp;   int main&#40;&#41;   &#123;       struct sockaddr_un add_server, add_client;       int fd_server, fd_client;       int len;       char ch;       fd_server = socket&#40;AF_UNIX,SOCK_STREAM,0&#41;;       if&#40;fd_server == -1&#41;           perror&#40;&quot;socket&quot;&#41;;       add_server.sun_family = AF_UNIX;       strcpy&#40;add_server.sun_path,&quot;san_sock&quot;&#41;;       if&#40; bind&#40;fd_server,&#40;struct sockaddr*&#41;&amp;add_server,sizeof&#40;add_server&#41;&#41; != 0&#41;           perror&#40;&quot;bind&quot;&#41;;       len = sizeof&#40;add_client&#41;;       fd_client = connect&#40;fd_server,&#40;struct sockaddr*&#41;&amp;add_client,&amp;len&#41;;       printf&#40;&quot;Sanfoundry\n&quot;&#41;;        return 0;   &#125;
A. this program will print the string “Sanfoundry”
B. segmentation fault
C. error
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;sys/types.h&gt;   #include&lt;sys/un.h&gt;   #include&lt;sys/socket.h&gt;&nbsp;   int main&#40;&#41;   &#123;       struct sockaddr_un add_server, add_client;       int fd_server, fd_client;       int len;       char ch;       fd_server = socket&#40;AF_UNIX,SOCK_STREAM,0&#41;;       if&#40;fd_server == -1&#41;           perror&#40;&quot;socket&quot;&#41;;       add_server.sun_family = AF_UNIX;       strcpy&#40;add_server.sun_path,&quot;san_sock&quot;&#41;;       if&#40; bind&#40;fd_server,&#40;struct sockaddr*&#41;&amp;add_server,sizeof&#40;add_server&#41;&#41; != 0&#41;           perror&#40;&quot;bind&quot;&#41;;       len = sizeof&#40;add_client&#41;;       fd_client = connect&#40;fd_server,&#40;struct sockaddr*&#41;&amp;add_client,&amp;len&#41;;       printf&#40;&quot;Sanfoundry\n&quot;&#41;;        return 0;   &#125;
A. this program will print the string “Sanfoundry” B. segmentation fault C. error D. none of the mentioned
Explanation:The syntax of the connect() is wrong. connect() should be used in client program only.