#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;   #include&lt;string.h&gt;                              &nbsp;   int main&#40;&#41;   &#123;       char *ptr;       printf&#40;&quot;%p\n&quot;,ptr&#41;;       ptr = &#40;char *&#41;malloc&#40;sizeof&#40;char&#41;&#41;;       printf&#40;&quot;%p\n&quot;,ptr&#41;;       return 0;   &#125;
A. this program will give segmentation fault
B. this program will print two same values
C. this program has some syntax error
D. none of the mentioned
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;       printf&#40;&quot;%p\n&quot;,ptr&#41;;       ptr = &#40;char *&#41;malloc&#40;sizeof&#40;char&#41;&#41;;       printf&#40;&quot;%p\n&quot;,ptr&#41;;       return 0;   &#125;
A. this program will give segmentation fault B. this program will print two same values C. this program has some syntax error D. none of the mentioned
Explanation:This program will print two different values.