正在加载图片...
第8章第6节 程序: int f(int n) fint c; if(n=1)c=10: 终止条件 else c=f(n-1)+2 函数自我调用 return c; inO fint f(int n) 函数声明(可省 printf(“ resulte Al!Sl=%d”,f(5); 略) 函数调用第8章第6节 程序 : int f(int n) {int c; if (n==1) c=10; else c=f(n-1)+2; return c; } main() {int f(int n); printf(“ resulte A[5]=%d”,f(5)); } 函数自我调用 终止条件 函数调用 函数声明(可省 略)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有