214k views
1 vote
What is a data type?

User Mnoronha
by
6.8k points

1 Answer

2 votes

Answer:

Data type is an attribute of the data in the computer science. It basically guide the compiler and interpreter about the data utilization in the program. Data type basically define the operation, which can be done on given data.

There are different types of data types are as follow:

Integer data type: This type if data type basically represent the integer type of data value from largest to smallest order.

For example: int p = 10;

Real data type: This type of data type is used to represent the real type of number from largest to smallest range.

For example: float b = 17.6;

User Iryna Prokopenko
by
6.8k points