+ 1
What is data type ?explain with real life entity.
2 Respuestas
+ 4
Think of it like recycling. :) Paper goes in this box, glass goes in this box, plastic goes in this box, etc... Whatever type the bin is, that's the type of object that gets stored inside of it and nothing else. The same holds true here; each memory location is dedicated toward that type of data so you'll need to place that type of value inside of it. This is also why often you find yourself having to convert values in order to store them in a particular variable.