void main(){...} is not in the standard, but works on both MSVC and GCC (with warnings). I think it works on both C/C++, but you really shouldn’t use it in production. Just use int main(void){...} , without any return value, which is permitted in the standard, and will return success iirc.
- 0 Posts
- 3 Comments
Joined 3 years ago
Cake day: June 15th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Any
void main(){...}enjoyers?


I personally think that C++ can be beautiful. For example:
std::filesystem::pathoverrides the/operator, for specifying parent paths. It’s the same as Kotlin’s OKIO and Pythons standard pathlib.