Q. What happens if the line below is executed in C and C++?
Code:int *ptr = malloc(20);
β
Correct Answer: (C)
Error in C++ and success in C
int *ptr = malloc(20);
You must be Logged in to update hint/solution