单项选择题

有下列程序:
#include<stdio.h>
int f(int x,int y)
return((y-x)*x);)
main()
int a=3,b=4,c=5,d;
d=f(f(a,b),f(a,c));
printf("%d\n",d);

程序运行后的输出结果是( )。

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

单项选择题
下面程序的运行结果是 #include<stdio.h> main() int a=28,b; char s[10],*p; p=s; dob=a%16; if(b<10) *p=b+48; else*p=b+55; p++;a=a 5;while(a>0); *p=' 0';puts(s);
A) 10
B) C2
C) C51
D) \0
单项选择题
设变量已正确定义,以下不能统计出一行中输入字符个数(不包含回车符)的程序段是______。 A) n=0;while((ch=getchar())!=' n')n++; B) n=0;while(getchar()!=' n')n++; C) for(n=0;getchar()!=' n';n++); D) n=0;for(ch=getchar();ch!=' n';n++);
相关试题
  • 如果需要打开一个已经存在的非空文件“FILE...
  • 程序中若有如下说明和定义语句 char fun...
  • 有以下程序段: int a[10]=1,2,...
  • fscanf函数的正确调用形式是( )。
  • 若有下列说明,则( )不是对strcpy库函数...