man operator macOS 10.12顯示etc.,它是什麼,一個聯機錯誤? OPERATOR(7) BSD Miscellaneous Information Manual OPERATOR(7)
NAME
operator -- C operator precedence and order of evaluation
DESCRIPTION
我的任務是編寫一個或多個C語句,清除變量「x」的位11和12(而不會干擾其他位使用位)級C運營商。我的教授說:「下面聲明的變量」掩碼「可能會有所幫助。」 int mask = 0x00001800;
int x = arbitrary_value;
我應該使用移位操作結合位級操作嗎?我有點不清楚如何做到這一點。