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

Answer Posted / friend

i think above program ans ramesh

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why double pointer is used in c?

563


What is bash c?

551


When should the const modifier be used?

651


How do you print an address?

738


What is array of structure in c?

590






What is the difference between malloc() and calloc()?

611


Explain do array subscripts always start with zero?

751


What is the g value paradox?

641


What does %c do in c?

578


Write a program to identify if a given binary tree is balanced or not.

680


Write a program to print factorial of given number without using recursion?

564


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2225


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4487


What is an example of structure?

584


Explain void pointer?

585