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 protocol in c?
Explain how do you print an address?
What is the difference between Printf(..) and sprint(...) ?
What does static variable mean in c?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is the use of a static variable in c?
What are different types of pointers?
What is atoi and atof in c?
Do you know what are the properties of union in c?
What is calloc malloc realloc in c?
Write a Program to find whether the given number or string is palindrome.
What is null in c?
Why is it that not all header files are declared in every C program?
Define C in your own Language.
Can we initialize extern variable in c?