Type conversion : Data Type Cast « Data Type « C Tutorial






  1. Type conversion occurs when the expression has data of mixed data types.
  2. In type conversion, the data type is promoted from lower to higher.
  3. The hierarchy of data types: double, float, long, int, short, char.
2.31.Data Type Cast
2.31.1.Type conversion
2.31.2.Forced conversion
2.31.3.Type casting
2.31.4.Data type cast: from int to float