我想知道x在以下程序中是否会达到零.
请考虑:
int main () { int x = 1; while (x) { x <<= 1; } return 0; }
该程序的预期行为是正常退出还是永远循环?
c bit-shift
bit-shift ×1
c ×1