A

Admin • 833K Points
Coach

Q. What happens if the line below is executed in C and C++?

Code:
int *ptr = malloc(20);
  • (A) Error in C and C++
  • (B) Warning in C and C++
  • (C) Error in C++ and success in C
  • (D) Error in C and success in C++
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.