[CSI] Difference between value and type

Mikhail Nesterenko mikhail at cs.kent.edu
Mon Sep 12 08:26:04 EDT 2016



> I was rewriting my notes this evening when I realized that the definitions
> for value and type are very similar. Value is seen as the data held in a
> variable, while type is the kind of data stored in a variable. Due to the
> definitions being so close, are the two terms exchangeable, or is type
> defining value?

Type is the kind of data to be stored:	int, double, bool, char
Value is the actual stored data:  	22,    55.0, true, 'a'

Thanks,
-- 
Mikhail


More information about the cs13001 mailing list