Monday 8 April 2013

Is this code legal?


    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.


Blog Author: Vijay Kumar

No comments:

Post a Comment