I am not sure if promotion just means converting a data type to a larger data type (for example short
to int
).
Or does promotion means converting a data type to another "compatible" data type, for example converting a short
to an int
, which will keep the same bit pattern (the extra space will be filled with zeros). And is conversion means converting something like an int
to a float
, which will create a completely different bit pattern?