看看匯編麽,以下是那一行代碼的匯編結果:
程序代码:

; 8 : printf("a>>1 to is = %x\n",(*a) >> 1); mov eax, DWORD PTR _a$[ebp] movsx ecx, BYTE PTR [eax] sar ecx, 1 mov esi, esp push ecx push OFFSET ??_C@_0BB@EPOBIAHI@a?$DO?$DO1?5to?5is?5?$DN?5?$CFx?6?$AA@ call DWORD PTR __imp__printf add esp, 8 cmp esi, esp call __RTC_CheckEsp

授人以渔,不授人以鱼。