#include&lt;stdio.h&gt;   #include&lt;pthread.h&gt;&nbsp;   void *fun_t&#40;void *arg&#41;;   void *fun_t&#40;void *arg&#41;   &#123;       printf&#40;&quot;Sanfoundry\n&quot;&#41;;       pthread_exit&#40;&quot;Bye&quot;&#41;;   &#125;   int main&#40;&#41;   &#123;        pthread_t pt;       void *res_t;       if&#40;pthread_create&#40;&amp;pt,NULL,fun_t,NULL&#41; != 0&#41;                           perror&#40;&quot;pthread_create&quot;&#41;;       return 0;   &#125;
A. this program will print the string “Sanfoundry”
B. this program will print nothing
C. segmentation fault
D. run time error
Answer:A
#include&lt;stdio.h&gt;   #include&lt;pthread.h&gt;&nbsp;   void *fun_t&#40;void *arg&#41;;   void *fun_t&#40;void *arg&#41;   &#123;       printf&#40;&quot;Sanfoundry\n&quot;&#41;;       pthread_exit&#40;&quot;Bye&quot;&#41;;   &#125;   int main&#40;&#41;   &#123;        pthread_t pt;       void *res_t;       if&#40;pthread_create&#40;&amp;pt,NULL,fun_t,NULL&#41; != 0&#41;                           perror&#40;&quot;pthread_create&quot;&#41;;       return 0;   &#125;
A. this program will print the string “Sanfoundry” B. this program will print nothing C. segmentation fault D. run time error
Explanation:The pthread_join() function waits for the thread to terminate.