Re:Declaring C String Constants
by kccqzy on Wednesday May 17, 2017 @02:31PM
(#14361368)
Yes it would behave differently. Putting void in the parenthesis tells the compiler the function accepts no arguments at all.
[ Parent
| on HN ]
Good 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.