unsafeCode
unsafeCode
![](https://lemmy.ml/pictrs/image/e4ec26aa-d8dc-42bb-8598-4049ee0b9639.webp?format=webp&thumbnail=128)
![](https://lemmy.ml/pictrs/image/e4ec26aa-d8dc-42bb-8598-4049ee0b9639.webp?format=webp)
1 crossposts
unsafeCode
You're viewing a single thread.
That is why I use just int main(){...}
without arguments instead.
Any void main(){...}
enjoyers?
int main(void) { . . . }
for me!
besides not requiring a return value, what difference does it make?
@stebo02 @Bogus5553 Neither of them require a return value, but void main
isn't legal C++.
yeah I thought so, does it work in C?
It will also give an error if you try to add a return value anyways.
while (true) {...}
Very true, the less user input you have the safer your code will be.