Type, Relation To Programming.

Q11. What is a type, as this term relates to programming?

Ans. A type or datatype represents a set of possible values. When we specify that a variable has a certain type, we are saying what values it can hold.When we say that an expression is of a certain type, you are saying what values the expression can have. For example, to say that a variable is of type int says that integer values in a certain range can be stored in that variable.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: