📝 ### 第25题 以下代码的功能是()。 ```cpp int reversed = 0; while (x != 0) { int digit = x % 10; x …
📂 C++
· ⚡ 难度 3
· ❓ 单选题
· 📖 GESP三级冲刺
### 第25题
以下代码的功能是()。
```cpp
int reversed = 0;
while (x != 0) {
int digit = x % 10;
x /= 10;
reversed = reversed * 10 + digit;
}
```