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 valid operations on pointers?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What is c method?
Why do we use & in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What are structures and unions? State differencves between them.
Why do we need a structure?
How to write a multi-statement macro?
What functions are used in dynamic memory allocation in c?
Can we declare function inside main?
What is difference between stdio h and conio h?
difference between Low, Middle, High Level languages in c ?
Can we declare variables anywhere in c?
Why do we use c for the speed of light?