Does the same variable allocate the same memory in different languages

42 Views Asked by At

I'm checking the bytes of s=a variable allocated in memory using Python. The result is 50

Will I get the same 50 bytes if I do the same in other languages?

My Python code is here

import sys
s ='a'

print(sys.getsizeof(s))
0

There are 0 best solutions below