Why add void to method parameter list

后端 未结 4 1931
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 06:53

I\'ve seen methods with the following signature:

void foo (void);

They take no argument, however I\'m wondering whether doing this is usefu

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 07:06

    This is a legacy from the older versions of C for functions with no arguments

提交回复
热议问题