ADITI
Company
Programming
Program
Q. In the following program
#include
main()
{
char *pDestn,*pSource="I Love You Daddy";
pDestn=malloc(strlen(pSource));
strcpy(pDestn,pSource);
printf("%s",pDestn);
free(pDestn);
}
Option
(a)Free() fails
(b)Strcpy() fails
(c)prints I love You Daddy
(d)error
Read Solution (Total 1)
-
- (c)prints I love You Daddy
- 10 years agoHelpfull: Yes(0) No(0)
ADITI Other Question