What is the output of this c


What is the output of this C code?

#include
int main()
{
struct p
{
char *name;
struct p *next;
};
struct p p, q;
p.name = "xyz";
p.next = NULL;
ptrary[0] = &p;
strcpy(q.name, p.name);
ptrary[1] = &q;
printf("%s\n", ptrary[1]->name);
return 0;
}

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What is the output of this c
Reference No:- TGS01377720

Expected delivery within 24 Hours