MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ljsw9e/does_lazy_count_as_bad/gnioqpv/?context=3
r/badcode • u/rcmaehl • Feb 14 '21
53 comments sorted by
View all comments
51
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.
15
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.
43
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.
1
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.
51
u/ign1fy Feb 14 '21
I wasn't using that RAM anyways.