Top

Discussion

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;
}

 

  • A.1314
  • B.Garbage value
  • C.1316
  • D.Random address

Answer: A

No answer description available for this question

No comment is present. Be the first to comment.
Loading…

Post your comment