Question Trying to understand bits on stack and heap

cjimme

New member
Joined
Apr 16, 2017
Messages
3
Programming Experience
1-3
Hi,

I try to understand how a computer works and how a programming language is communicating with your computer.
Lets just say for explaining purposes everybody has windows. A computer can have a 32bit windows or a 64 bit windows.

Does that mean that on a 32bit windows there can only be 32xzero's and one's 010000100101011110011010101etc. as maximum value to communicatie with your memory.
But a 64bit windows can even have 64xzero's and one's 01001110101101111110101010110101111100000111011etc. maximum value to communicate with your memory?
Am I thinking correct now, or am I totally wrong?

About programming languages. The stack can only have a maximum value of 8bits so thats 00010011 max right? So bool, float, long, byte, int. etc.
The heap can have a bigger value then 8bits, which value is this.. Between 8-32bit on a 32bit windows machine and lets say between 8-64bits on a 64bit windows machine?
Can an object for example also have a random number like 10bits or 26bits on the heap? Or has it always standard values like 16, 32 or 48bit.

Kind regards, Jimme
 
Back
Top Bottom