3 ms·
Yes it would behave differently. Putting void in the parenthesis tells the compiler the function accepts no arguments at all.
by kccqzy 10y ago
Yes it would behave differently. Putting void in the parenthesis tells the compiler the function accepts no arguments at all.
- 0xffff2 10y agoGood to know. I never bothered with `void` inside the argument list in C before (I primarily write C++, very rarely C). I will have to remember to be more explicit when I do write C code in the future.