r/computerscience • u/nika_aka_joyboy • Oct 22 '26
How are objects seperated in a computer?
A computer holds 0s and 1s and nothing apart from it,so a letter can be stored as an ASCII or other representation,a number in its binary, an image in its pixel etc. But how is it differentiated. Say I'm saving an image, I need to store its pixels, colour format and all. So,how are they differentiated, saying this is for colour,this is for objects and also the same with video or document?
64
Upvotes
View all comments
1
u/SchemeWestern3388 Oct 23 '26
Very simply, the computer keeps track of the 'type' of the data it's working with. When that gets messed up, the result is usually an immediate crash.