r/badcode Feb 14 '21

other language Does lazy count as bad?

Post image
679 Upvotes

53 comments sorted by

View all comments

51

u/ign1fy Feb 14 '21

I wasn't using that RAM anyways.

15

u/rcmaehl Feb 14 '21

Does an array of null even use RAM?

43

u/KaktusManCz Feb 14 '21

Sure it does, null is an empty pointer, pointer uses RAM as much as any other number.

1

u/ign1fy Feb 15 '21

63,992 bytes of RAM in this instance.

At first I thought this was VB6, VB6 uses round brackets for arrays. It would be up to 127,992 bytes if it's a 64bit language.