main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
Answer Posted / guest
error
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the difference between a free-standing and a hosted environment?
string reverse using recursion
Write a program to know whether the input number is an armstrong number.
Explain what does a function declared as pascal do differently?
Where local variables are stored in c?
What does %2f mean in c?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is the difference between malloc calloc and realloc in c?
What does main () mean in c?
Write a program to show the change in position of a cursor using c
What is indirection? How many levels of pointers can you have?
Explain the process of converting a Tree into a Binary Tree.
What should malloc() do?
Do you know null pointer?
What is the use of pragma in embedded c?