Vidyalelo
C Programming · Q127

File Input Output

Programming · C Programming · question 127

Q127

What will be the output of the following C code? #include void main() char *p = calloc(100, 1); p = "welcome"; printf("%s ", p);

A.
Segmentation fault
B.
Garbage
C.
Error
D.
welcome
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board