Computer Science, asked by nandank8366, 1 year ago

What are the basic difference between variable and data type in the c?

Answers

Answered by adventureisland
9

Variables must be connected with a data type, which can include integers, fractions, characters, and so on. Every data type has a different size & range than the others.

Difference between variable and data type :

Variable :

  • The type of a constant specifies the kind of values it can hold and the activities it can do.
  • Variables must be connected with a data type, which can include integers, fractions, characters, and so on.

Data type :

  • In C, types of data refer to a comprehensive system for declaring variables and functions of various sorts.
  • Every data type has a different size & range than the others.
  • A type of data is a classification of data that informs the compilers or interpreters how the developer intends to use the information.

Similar questions