Question
What is the output of this C code?
void main()
{
char *p = calloc(100, 1);
p = "welcome";
printf("%s\n", p);
}
void main()
{
char *p = calloc(100, 1);
p = "welcome";
printf("%s\n", p);
}
Answer: Option D
Was this answer helpful ?
None.
Was this answer helpful ?
More Questions on This Topic :
Question 1. void * malloc(size_t n) returns: ....
Submit Solution