MCQ Practice

In this program the two printed memory locations has the difference of . . . . . . . . bytes. #include #include int main() { int *ptr; ptr = (int*)malloc(sizeof(int)*2); printf("%pn",ptr); printf("%pn",ptr+1); return 0; }

A

1

B

4

C

can not be determined

D

none of the mentioned

Correct Answer: B