main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
what is the output?
Answer Posted / mannucse
name
| Is This Answer Correct ? | 8 Yes | 14 No |
Post New Answer View All Answers
What is a char c?
What are 'near' and 'far' pointers?
What is the difference between abs() and fabs() functions?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What is the heap in c?
What is use of null pointer in c?
Tell us bitwise shift operators?
Is void a keyword in c?
Explain spaghetti programming?
What is file in c language?
What is the use of a conditional inclusion statement in C?
What does sizeof return c?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
What is an auto variable in c?
What is c language and why we use it?