Home / C Programming / Memory Allocation :: Discussion

Discussion :: Memory Allocation

  1. What will be the output of the program?

     #include
     #include  
        
        int main() 
        {     
              int *p;   
              p = (int *)malloc(20); /* Assume p has address of 1314 */     
              free(p);   
              printf("%u", p);  
              return 0;
       } 
    

  2. A.

    1314

    B.

    Garbage value

    C.

    1316

    D.

    Random address

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment