摘要
函数的递归调用是C语言的重点,也是学习C语言的一个难点.针对教学过程中发现的问题,通过实例对C语言的函数递归调用进行了详细阐述,包括递归函数定义、递归调用条件、递归函数设计、递归调用执行过程和递归转换成非递归的方法.以便于学习者深入理解递归调用的运行机制,并合理使用递归调用进行程序设计.
The recursive call of function is not only the focus of C language,but also a difficulty in learning C language.Aiming at the problems found in the teaching process,this paper expounds in detail the recursive call of functions in C language through examples,including recursive function definition,recursive call conditions,recursive function design,recursive call execution process and methods to convert recursion into non-recursion.It is facilitate for learners to deeply understand the operation mechanism of recursive call and reasonably use recursive call for programming.
作者
秦玉平
冷强奎
马靖善
QIN Yuping;LENG Qiangkui;MA Jingshan(College of Mathematical Sciences,Bohai University,Jinzhou 121013,China;School of Electronic and Information Engineering,Liaoning Technical University,Huludao 125105,China;College of Information Science and Technology,Bohai University,Jinzhou 121013,China)
出处
《渤海大学学报(自然科学版)》
CAS
2022年第1期76-82,共7页
Journal of Bohai University:Natural Science Edition
基金
“兴辽英才计划”教学名师项目(XLYC1906015)
国家自然科学基金项目(No:22078024)
教育部产学合作协同育人项目(No:202102527018)
辽宁省普通高等教育本科教学改革研究项目(No:20210637).
关键词
C语言
函数
递归
非递归
C language
function
recursion
non-recursion