C Programming Fundamentals

Time: 00:00:00
0
Attempted
19
Not Attempted
0
Marked For Review
0
Attempted & Reviewed

Question 1 of 19

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);
}

Select Your Answer:

All Questions

Attempted
Not Attempted
Marked for Review
Attempted & Reviewed
Current