Keywords are the words in a language that are used for some internal process or represent some predefined actions. ushort is a keyword that is used to declare a variable which can store an unsigned integer value from the range 0 to 65,535. It is an alias of System.UInt16.
ushort variable_name = value;
ushort keyword occupies 2 bytes (16 bits) space in the memory.
Input: num: 5 Output: num: 5 Size of a ushort variable: 2 Input: num = 8765 Output: num: 8765 Type of num: System.UInt16 Size of a ushort variable: 2
num: 5 Size of a ushort variable: 2
num: 8765 Type of num: System.UInt16 Size of a ushort variable: 2 Min value of ushort: 0 Max value of ushort: 65535