#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;   #include&lt;string.h&gt;                              &nbsp;   int main&#40;&#41;   &#123;       char *ptr;       ptr = &#40;char*&#41;malloc&#40;sizeof&#40;char&#41;*11&#41;;       strcpy&#40;ptr,&quot;sanfoundry&quot;&#41;;       printf&#40;&quot;%d\n&quot;,*ptr&#41;;       return 0;   &#125;
A. s
B. sanfoundry
C. 115
D. segmentation fault
Answer:A
#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;   #include&lt;string.h&gt;                              &nbsp;   int main&#40;&#41;   &#123;       char *ptr;       ptr = &#40;char*&#41;malloc&#40;sizeof&#40;char&#41;*11&#41;;       strcpy&#40;ptr,&quot;sanfoundry&quot;&#41;;       printf&#40;&quot;%d\n&quot;,*ptr&#41;;       return 0;   &#125;
A. s B. sanfoundry C. 115 D. segmentation fault
Explanation:This program will print the equivalent decimal value at location pointed by “ptr”.