Wednesday, 6 August 2014

Find the output of the following program.


Is this code legal?
int *ptr;
ptr = (int *) 0x400;
Answer:
                        Yes
Explanation:
The pointer ptr will point at the integer in the memory location 0x400.

No comments:

Post a Comment