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


Please Help Members By Posting Answers For Below Questions

How can I change the size of the dynamically allocated array?

623


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

699


What is the difference between ā€˜gā€™ and ā€œgā€ in C?

2493


What is a sequential access file?

644


Describe how arrays can be passed to a user defined function

772






Write a program to find the biggest number of three numbers in c?

584


how to construct a simulator keeping the logical boolean gates in c

1716


What are the functions to open and close the file in c language?

587


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2974


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

596


How can I swap two values without using a temporary?

604


What is d scanf?

580


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

645


What does %2f mean in c?

670


How can I read in an object file and jump to locations in it?

567