Semicolon at the ends of if-statements and functions in C

后端 未结 7 937
猫巷女王i
猫巷女王i 2020-12-20 11:11

I just ran into some code that overuse semicolons, or use semicolon for different purposes that I am not aware of.

I found semicolons at the end of if-statements and

相关标签:
7条回答
  • 2020-12-20 12:12

    They do nothing. They're a sign of someone who doesn't understand the language terribly well, I suspect.

    If this is source code you notionally "own", I would remove the code and try to have a gentle chat with the person who wrote it.

    0 讨论(0)
提交回复
热议问题