Q183
What is the output of this program? #include #include #include int main() char *ptr; ptr = (char*)malloc(sizeof(char)*8); strcpy(ptr,"example"); printf("%d ",*ptr); return 0;
A.
e
B.
example
C.
101
AnswerD.
segmentation fault
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board