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
Dont ansi function prototypes render lint obsolete?
Is this program statement valid? INT = 10.50;
Is c is a middle level language?
What is derived datatype in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What does it mean when a pointer is used in an if statement?
Explain what is the benefit of using #define to declare a constant?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Which programming language is best for getting job 2020?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is the acronym for ansi?
What is equivalent to ++i+++j?
Write a program to know whether the input number is an armstrong number.
Differentiate fundamental data types and derived data types in C.