Given the following code, we can omit the u
in the first line, the l
in the second line, and the ul
in the third line, and the values will be automatically converted to uint
, long
and ulong
, respectively.
So why do we need the suffix (u
, l
, ul
) in this case?
uint uintnum = 7u;
long longnum = 7l;
ulong ulongnum = 7ul;