摘要
参数传递是C语言函数的难点,也是很多学生容易混淆的易错点;采用三个典型例子做实例,用函数调用过程的示意图和程序运行结果图,分析了实参是普通变量、变量的地址和数组名时,实参向形参传递数据的规律,帮助学生能直观理解参数传递的难点内容,提高学生的编程能力。
Parameter passing is a difficult point of C language function,and it is also an error-prone point that many students are easily confused.In this paper,three typical examples are used as examples.The schematic diagram of the function calling process and the program running result graph are used to analyze the law of the actual parameter,the address of the variable and the name of the array,and the data of the actual parameter to the formal parameter,so as to help students understand the difficult contents of parameter transmission intuitively and improve students'programming ability.
作者
杨智明
Yang Zhiming(School of Information,Baoshan University,Baoshan Yunnan 678000)
出处
《保山学院学报》
2019年第5期80-83,共4页
JOURNAL OF BAOSHAN UNIVERSITY
关键词
C语言
参数
传递
C language
Parameters
Transfer