r/ComputerEngineering • • Aug 11 '19

Reinventing the Hello World

Post image
129 Upvotes

11 comments sorted by

32

u/clever_cow Aug 11 '19

int main() with no return?

That’s a paddlin

11

u/[deleted] Aug 11 '19

Yes that's the problem here

6

u/superduper0351 Aug 11 '19

I’m dumb, I don’t get it.

10

u/igglyplop Aug 12 '19

It's using modulo math. So it goes up every time by 3, then divides by 11, then takes the remainder of the division and indexes into the array by that.

The "how can i write hello world" meme has been run into the ground but that's all it is. What usually results is pointlessly obscure code that's more difficult to understand than code should be.

3

u/superduper0351 Aug 29 '19

Ahhhh ok I see now. That was a very comprehensive breakdown. Thanks a lot for the info!

5

u/keeponfightan Aug 11 '19

Yeah, but why?

3

u/igglyplop Aug 12 '19

It's a meme

1

u/losmann Aug 24 '19

What compiler is this?

2

u/Meedox9 Aug 27 '19

Online GDB

1

u/[deleted] Aug 17 '19

Ok but why would you ever do this tho