Home / C Programming / Memory Allocation :: Discussion

Discussion :: Memory Allocation

  1. How will you free the memory allocated by the following program?

     #include
     #include
     #define MAXROW 3
     #define MAXCOL 4  
     int main()
     {   
         int **p, i, j;  
         p = (int **) malloc(MAXROW * sizeof(int*));   
         return 0; 
    } 
    

     

  2. A.

    memfree(int p);

    B.

    dealloc(p);

    C.

    malloc(p, 0);

    D.

    free(p);

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment