Expression “variable, variable = value;”

后端 未结 4 948
[愿得一人]
[愿得一人] 2021-01-19 06:43

I have been looking through some MFC code and i came across this expression. It was in OnInitDialog() function, didn\'t look like it\'s MFC specific. The variables had some

4条回答
  •  日久生厌
    2021-01-19 07:05

    something, somethingElse = 0; 
    

    probably, it is done to avoid the unused variable warning on variable something an to initialize the somethingElse variable to 0.

提交回复
热议问题