Home » Categories » C » Find the output for the following C progra
Find the output for the following C progra
0
Find the output for the following C program

main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}

 
Asked By : yamuna Categories : CTechnicalHP
  Answer:   An empty string
Post Your Answer
Previous Question
Next Question
Related Questions