Check the binary digital of variable in memory

This is a Python forum, not a C forum. Please don’t assume that Python programmers are expert in C.

I have no idea what your C code does.

Also, it is not safe to assume that Python objects have a fixed address. In at least two Python interpreters, and probably more, objects can move around in memory at any time. The Python language does not define any sort of “get the address of this object” function or operator.

Some people will tell you that you can use id(). That is wrong. It is not portable: in Jython and IronPython, id() returns consecutive values 1, 2, 3, 4, 5, 6, … as needed.