Hi,
Why can it be useful to know the type of data a variable holds?
Often the data type of a variable constrains what you can do with it. You might want to ensure that a variable contains an integer or a double before using it in a mathematical calculation.