Can someone explain to me how computer memory allocation works?
If you have a bitset in c like...
bitset something<1>
and
bitset somewhere<10>
How does the computer and the compiler know when one bit ends and another bit begins?
How is data stored in memory without one value overwriting another?
I would assume this is the reason why out of bound arrays can crash a program or cause fatal errors.
Thank you for responding.
If you have a bitset in c like...
bitset something<1>
and
bitset somewhere<10>
How does the computer and the compiler know when one bit ends and another bit begins?
How is data stored in memory without one value overwriting another?
I would assume this is the reason why out of bound arrays can crash a program or cause fatal errors.
Thank you for responding.