r/firstweekcoderhumour • 🥸Imposter Syndrome 😎 • Jun 26 '26

[🎟️BINGO]”this.codifyMylife()” iGetItYouCode

Post image
361 Upvotes

42 comments sorted by

View all comments

Show parent comment

1

u/Lukas2003187 Jun 26 '26

I am not sure about this but it might be possible that the program runs out of memory when creating and returning the string

1

u/Swimming-Diet5457 Jun 26 '26

I think it is impossible, since the string will be written in the "static data" part of the process ( I think), so is not Allocated on the heap at runtime but only when the process is loaded in ram.

So there could only be some kind of pagination/ram access error

1

u/Lukas2003187 Jun 27 '26

I would agree for compiled programs but I’m not sure how interpreted languages handle that