What is a data type?
A data type is a container or a storage place for storing data.
A data type is a program using which we can store numbers and strings only.
A data type is a type, using which we can perform any task.
None of the above.
A datatype is a container or a storage place for storing data .
A data type in any programming language is used for storing data . You can imagine data type as a container for storing data .
Ex: Assume you need to store 1 liter of water into a glass container . glass container can be technically called as data type which is storing water . Same way if you declare int i=10 ; then 10 will be stored inside int container, the name given to container is technically called as variable. In the above example i is variable name .
Back To Top