Nowadays Words are rarely used in arithmetic operations (because most of the CPU have some 32 bit registers, if not 64 bit), but they can be encountered in some API to encode some flags with logical operations (like in a set). And some embedded systems.
program wordexam; var w1,w2: word; begin w1 := 1; w2 := $2ef; writeln ( w1,'+', w2,' = ' , w1+w2); end.
|simple data types|
|complex data types|