+ 1

What is data type ?explain with real life entity.

22nd Feb 2018, 4:15 PM
Akash Verma
Akash Verma - avatar
2 Antworten
+ 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.
22nd Feb 2018, 4:30 PM
Fata1 Err0r
Fata1 Err0r - avatar
22nd Feb 2018, 4:19 PM
Scooby
Scooby - avatar