反复把 n 减半,数一共跑几轮: int n = 40, c = 0; while (n > 0) { n = n / 2; c++; } cout << c << endl; 输出是( )。 A. 6 B. 5 C. 7 D. 死循环,n 永远变不成 0