---
# System prepended metadata

title: C語言題庫-017

---

# C語言題庫-017
要對絕對地址0x100000賦值，我們可以用
(unsigned int*)0x100000 = 1234;
那麼要是想讓程序跳轉到絕對地址是0x100000去執行
，應該怎麼做？
【標準答案】((void ()( ))0x100000 ) ( );
首先要將0x100000強制轉換成函數指針,即:
(void (*)())0x100000
然後再調用它:
((void ()())0x100000)();