Tricky pointer question
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm having trouble with a past exam question on pointers in c which I found from this link, http://www.cl.cam.ac.uk/teaching/exams/pastpapers/y2007p3q4.pdf The question is this: Address Byte offset ---------0 --1-- 2-- 3 0x04 | 10 00 00 00 0x08 | 61 72 62 33 0x0c | 33 00 00 00 0x10 | 78 0c 00 00 0x14 | 08 00 00 00 0x18 | 01 00 4c 03 0x1c | 18 00 00 00 int ** i =( int **) 0x04 ; short ** pps =( short **) 0x1c ; struct i2c { int i ; char * c ; }* p =( struct i2c *) 0x10 ; (a) Write down the values for the following C expressions: **