我有这个简单的代码:
int main() { float x = foo(); printf("returned value: %f", x); return 0; } float foo () { return 5; }
当我运行代码时,输出为:"返回值:-858993472.000000"
有人可以向我解释为什么返回值不是5.000000?
c floating-point
c ×1
floating-point ×1