📜  铸造 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.809000             🧑  作者: Mango

代码示例2
Type casting refers to changing an variable of one data type into another. 
The compiler will automatically change one type of data into another if it
makes sense. For instance, if you assign an integer value to a floating-point
variable, the compiler will convert the int to a float. Casting allows you to 
make this type conversion explicit, or to force it when it wouldn’t normally 
happen.