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
What are the advantages of using new operator as compared to the function malloc ()?
What are the difference between a free-standing and a hosted environment?
Explain what is the difference between far and near ?
Explain how can I make sure that my program is the only one accessing a file?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
Write a code to remove duplicates in a string.
How is a structure member accessed?
What is indirection?
What is the difference between c &c++?
What are nested functions in c?
Explain a pre-processor and its advantages.
Write a program to print fibonacci series without using recursion?
What is c programming structure?
What is difference between function overloading and operator overloading?
Do you know the use of fflush() function?