A

Admin • 833K Points
Coach

Q. How to initialize a pointer to an array of 10 char?

  • (A) p = malloc (10);
  • (B) p = (char *) malloc(10,1);
  • (C) p = (char *) malloc (sizeof(10*char));
  • (D) p = (char *) malloc(10 * sizeof(char));
  • Correct Answer - Option(D)
  • Views: 25
  • Filed under category C Programming
  • 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.