C语言教学中强制类型转换运算运用探讨  被引量:1

Discussion on the Compulsory Type Conversion Operator in C Language Teaching

在线阅读下载全文

作  者:毛丽娜[1] 

机构地区:[1]华东交通大学,南昌330013

出  处:《现代计算机》2009年第12期135-136,146,共3页Modern Computer

摘  要:在C语言中有一个强制类型转换运算符,它为C语言中的数据类型转换带来很大的方便,它不仅可以在不同类型数据之间进行赋值,在运算中发挥强大的作用,还可以运用在其他方面产生特殊作用。通过程序例子讨论强制类型转换运算在函数调用时实参与形参类型如何保持统一,计算时如何保持结果的精度及指针类型转换等几方面的运用。There is a compulsory type conversion operator in the C language. It is convenient for the conversion of data s types in the C language. It not only serves a great function on assigning values and operations between different data types, but also makes special effect in other aspects. Uses some programming examples to discuss actual parameters and formal parameters how to keep unification in function call, how to keep result precision and pointer type conversion.

关 键 词:强制类型转换运算符 表达式 数据类型 

分 类 号:TP312.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象