Top

Discussion

What will be the output of the program (16-bit platform)?

#include
#include

int main()
{
    int *p;
    p = (int *)malloc(20);
    printf("%d\n", sizeof(p));
    free(p);
    return 0;
}

 

  • A.4
  • B.2
  • C.7
  • D.Garbage value

Answer: B

No answer description available for this question

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

Post your comment