单项选择题

有以下程序:
#include<stdio.h>
int f(int x)
int y;
if(x==0||x==1)return(3);
y=x*x-f(x-2);
return y;
main()
int z;
z=f(3);printf("%d\n",z);
程序的运行结果是______。

A.0
B.9
C.6
D.8
<上一题 目录 下一题>
热门 试题

单项选择题
以下四个程序中,完全正确的是______。
A.#include<stdio.h>
B.#include<stdio.h>
main(); main()
/*programming*/ /*/programming/*/
printf("programming!\n"); printf("programming!\n");
C.#include<stdio.h>
D.include<stdio.h>
main() main()
/*/*programming*/*/ /*programming*/
printf("programming!\n"); printf("programming!\n");
单项选择题
设已有定义:float x;则以下对指针变量P进行定义且赋初值的语句中正确的是______。
A.float*p=1024;
B.int*p=(float)x;
C.float p=&x;
D.float*p=&x;
相关试题
  • 设有定义:FILE*fw;,请将以下打开文件的...
  • 以下程序运行后的输出结果是______。...
  • 以下程序运行后的输出结果是______。...
  • 以下程序的功能是:输出100以内(不含1...
  • 已有定义:double*P;,请写出完整的语句...