Re:Main is usually a function, so when is it not? (2015)
by hermitdev on Monday June 14, 2021 @08:06PM
(#27509918)
Also, just as execution doesn't start in main, it also doesn't end with main, either. In C, you can register `atexit` handlers. You can do that in C++, too. In C++, you can also have "user" code executed before & after main by virtue of static initialization & destruction.
[ Parent
| on HN ]
There are no comments on this comment yet.