调试器设置了巨大的初始值Eclipse C ++

问题描述 投票:1回答:1

我在C ++上有一个很小的代码。当我尝试调试它时,我看到变量的初始值很大。是正常的还是C ++ / Eclipse有任何问题?谢谢!

#include <iostream>
using namespace std;

int main() {
int c = 5;
int a = c++;
int b = ++c;
cout << a << b << c;
return 0;
}

enter image description here

c++ eclipse debugging
1个回答
3
投票

正常。

© www.soinside.com 2019 - 2024. All rights reserved.