Initialise a variable to its own undefined value

前端 未结 4 759
你的背包
你的背包 2021-02-04 01:50

In C, does initialising a variable to it\'s own value make sense? If yes, what for?

Allow me to elaborate. In Git sources there are some examples of initialising a varia

4条回答
  •  眼角桃花
    2021-02-04 02:42

    I think status = status doesn't change the value of status (compared to int status;). I think it is used to suppress the unused variable warning.

提交回复
热议问题