What would be the output of the following program?
main() { char *str,*str1="I Love You"; str=malloc(strlen(str1)); strcpy(str,str1); printf("%s",str); free(str); }
Reveal answer
Fill a bubble to check yourself
What would be the output of the following program?
main() { char *str,*str1="I Love You"; str=malloc(strlen(str1)); strcpy(str,str1); printf("%s",str); free(str); }