“int main (vooid)”? How does that work?

前端 未结 4 772
迷失自我
迷失自我 2020-12-22 20:31

I recently had to type in a small C test program and, in the process, I made a spelling mistake in the main function by accidentally using vooid instead of

4条回答
  •  清歌不尽
    2020-12-22 21:12

    It's simply using the "old-style" function-declaration syntax; you're implicitly declaring an int parameter called vooid.

提交回复
热议问题