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
Why double pointer is used in c?
What is bash c?
When should the const modifier be used?
How do you print an address?
What is array of structure in c?
What is the difference between malloc() and calloc()?
Explain do array subscripts always start with zero?
What is the g value paradox?
What does %c do in c?
Write a program to identify if a given binary tree is balanced or not.
Write a program to print factorial of given number without using recursion?
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
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.
What is an example of structure?
Explain void pointer?