integer - How does computer identifiy what was stored in its memory? -


how computer know it's integer, not memory address or not ascii?

how computer knows it, interpret in right way?

a computer doesn't know (unless have advanced architecture each memory location has tag value indicating what's stored there). stores , retrieves bits.

programs know how interpret bits because told programmer how so. assuming programmer competent of course :-)


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -