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



Answer Posted / mannucse

name

Is This Answer Correct ?    8 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a protocol in c?

561


Explain how do you print an address?

661


What is the difference between Printf(..) and sprint(...) ?

792


What does static variable mean in c?

655


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1263






What is the use of a static variable in c?

596


What are different types of pointers?

566


What is atoi and atof in c?

620


Do you know what are the properties of union in c?

588


What is calloc malloc realloc in c?

597


Write a Program to find whether the given number or string is palindrome.

616


What is null in c?

602


Why is it that not all header files are declared in every C program?

685


Define C in your own Language.

644


Can we initialize extern variable in c?

637