Q497
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("%p ",ptr); printf("%p ",ptr+1); return 0;
A.
1
B.
4
AnswerC.
can not be determined
D.
none of the mentioned
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board