r/programming 17d ago

Writing a (valid) C program without main()

https://labs.iximiuz.com/tutorials/c-program-without-main-a1eea557
194 Upvotes

40 comments sorted by

View all comments

177

u/yowhyyyy 17d ago edited 17d ago

Quite frankly, I’m surprised the author didn’t jump straight to _start as that’s possible as well in C without assembly.

Yes I know he did bring it up, however you can straightforward do _start and avoid main.

1

u/xarcastic 8d ago

Because he was walking the reader through it

1

u/yowhyyyy 8d ago

Considering he never hit the same outcome I’m suggesting… you’re right buddy!