Nick Desaulniers personal blog

F() vs. F(void) in C vs. C++

Prefer f(void) in C to potentially save a 2B instruction per function call when targeting x86_64 as a micro-optimization. -Wstrict-prototypes can help. Doesn’t matter for C++.
Points
194
HN comments
67
Submissions
1
Cited by
0 commenters

Programming LanguagesSoftware Engineering2019

On Hacker News

SubmittedTitle on HNPointsComments
May 12, 2019F() vs. F(void) in C vs. C++ by headalgorithm19467

More from Nick Desaulniers

All 4 posts →

Related posts from the same era