当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

下面程序的运行结果是#include "stdio.h"void fun(int k,int *p) { int a,b; if(k==1|| k==2)


下面程序的运行结果是#include "stdio.h" void fun(int k,int *p) { int a,b; if(k==1|| k==2) *p=1; else { fun(k-1,&a); fun(k-2,&b); *p=a+b; } }main(){ int x; fun(6,&x); printf("%d ",x);}

参考答案
您可能感兴趣的试题
  • 下面程序的运行结果是 include main() {int a=28,b; char s[10],*p; p=s; do{b=

  • 下面程序的运行结果是 include main() {int a=28,b; char s[10],*p; p=s; do{b=

  • ● 下面程序运行后的输出结果是 (59) 。 #include <stdio.h> #include <string.h> voi

  • 下面程序的运行结果是_________。 include<stdio.h> main() {int i=0; char a[]=“abm”

  • 下面程序段的运行结果是()。#include stdio.hmain(){char s[]=example! *tt=swhile( *t!=p){ printf(\%c *t-32)t++}}

  • 下面程序段的运行结果是()。(注:└┘代表空格)#include stdio.hmain(){ char s[6]s=abcdprintf(\\%s\\ s)}