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

In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

766


What is nested structure in c?

615


Implement bit Array in C.

678


What is wrong with this program statement?

610


Why is not a pointer null after calling free?

599






What is optimization in c?

569


What is wrong with this initialization?

594


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

670


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1582


What is abstract data structure in c?

532


Explain goto?

719


What do you know about the use of bit field?

613


When is the “void” keyword used in a function?

840


Which function in C can be used to append a string to another string?

648


simple program of graphics and their output display

1470