C Programming Fundamentals
Casual Mode - Take your time!
1 / 19
Correct
0
Incorrect
0
Score
0%
Multiple Choice
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);
}
- free() fails
- I Love You
- malloc() fails
- strcpy() fails