#bruh
18 messages · Page 1 of 1 (latest)
this is undefined behavior in c++, use c if you want this
Wait wtf would happen
technically ub but it'll be fine on any sane compiler
it'll just call itself repeatedly and then segfault 
Or get optimized away because that's legal too
nasal demons 
stack overflow, no?
This is actually something known as user optimization
You see, it’s only a matter of time before your program segfaults, gets caught in a loop, or just plain doesn’t work. By writing code like this you speed this process up for the computer and make it more efficient 
I wouldn't be so sure to say this - I've seen people's code break on calling main when it would theoretically work
I’d be interested to see any examples of it breaking
I'm not sure if I can find the question again but it was a menu system and they were calling main instead of putting it into a loop
@ocean snow
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.
Sorry I fucked up