Uninitialized variable in C

前端 未结 5 1083
滥情空心
滥情空心 2020-12-07 03:15

I\'m a little bit confused. As far as I know, if you declare an int in C, without initializing it, for e.g: int x;

so its value is indeterminate. So if

5条回答
  •  死守一世寂寞
    2020-12-07 04:01

    It's undefined behaviour, meaning that anything could happen. Literally anything. The behavior is just not defined.

提交回复
热议问题