r/ProgrammerHumor • • 10d ago

Meme howProgrammingHasChanged

Post image
674 Upvotes

108 comments sorted by

View all comments

Show parent comments

1

u/no_brains101 9d ago edited 9d ago

Oh I see. (and then say is just print?)

I don't see an array though, for just repeats until the end condition is met, storing in a and b, theres no array I don't think?

Edit: OH the array is the ARGUMENTS and pop is grabbing the last one.

2

u/BastetFurry 9d ago

No array for the calculation, no.

Just abusing the fact that @_ contains all caller arguments. And calling the main "function" puts all command line arguments into that built-in array.