Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Rohangrr

  • 3 years ago

How will you free the memory allocated by the following program? #include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() { int **p, i, j; p = (int **) malloc(MAXROW * sizeof(int*)); return 0; }

  • This Question is Closed
  1. Rohangrr
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    opt: A. memfree(int p); B. dealloc(p); C. malloc(p, 0); D. free(p);

  2. facemash-RNC
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    its free(p);

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy