What is Indeterminate value?

后端 未结 2 1448
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 08:49

I found this in c99 standard

3.17.2
1 indeterminate value
either an unspecified value or a trap representation

This above statement is not

2条回答
  •  悲&欢浪女
    2020-11-30 09:32

    Unless otherwise specified, static objects contain zero or null pointer values upon program startup. Automatically and dynamically allocated objects are initialized only if an initial value is explicitly specified; otherwise they initially have indeterminate values (typically, whatever bit pattern happens to be present in the storage, which might not even represent a valid value for that type).

    Reference : WikiPedia

提交回复
热议问题