单选题设变量已正确定义并赋值,以下正确的表达式是 A) x=y*5=x+Z B) int(15.8%5) C) x=y+z+5,++y D) x=25%5.0
单选题下列程序的输出结果是( )。 main () int a=4,b=5,c; if(a<b) c=a*b; printf("%d,%d,%d/n",b,a,c); else c=b/a;printf("%d,%d,%d/n",b,a, c); A) 4,5,12 B) 20 C) 5,4,20 D) 12
单选题C语言对if嵌套语句的规定:else总是与______配对。
单选题设有以下程序段: int x=0,s=0; whUe( ! x! =0) s+ = ++x; printf("%d",s); 则( )。 A) 运行程序段后输出0 B) 运行程序段后输出1 C) 程序段中的控制表达式是非法的 D) 程序段执行无限次
单选题若有定义int a=5,b=7;,则表达式a%=(b%2)运算后,a的值为( )。
单选题下面函数调用语句含有实参的个数为( )。func((exp1,exp2),(exp3,exp4,exp5));
单选题有以下程序 #include<stdio.h> main() (int x=1, y=0; if(!x) y++; else if(x==0) if(x)y+=2; else y+=3; printf("%d/n", y); 程序运行后的输出结果是______。
单选题有以下程序: #include<stdio.h> main() int c; while((c=getchar())!='/n') switch(c-'2') case 1:putchar(c+4); case 2:putchar(c+4);break; case 3:putchar(c+4); case 4:putchar(c+4);break; printf("/n"); 输入以下数据,<CR>代表一个回车符, 2743<CR> 程序的输出结果是( )。 A) 877 B) 966 C) 778 D) 766
单选题有以下程序 #include<stdio.h> void
fun(int x) {if(x/2>1)fun(x/2);
printf("%d",x); } main()
{fun(7);printf("/n");) 程序运行后的输出结果是{{U}} {{/U}}。
A. 1 3 7
B. 7 3 1
C. 7 3
D. 3 7
单选题有以下程序
#include
main()
{int ij,m=1;
for(i=1;i0;j--)
{if(i*j>3)break;
m*=i*j;
}}
printf("m=%d\n",m);}
程序运行后的输出结果是
单选题有如下程序: #include <stdio.h> main() float x=2.0,y; if(x<0.0) y=0.0; else if(x>10.0) y=1.0/x; else y=1.0; printf("%f/n",y); 该程序的输出结果是( )。
单选题有以下程序 #inc1ude<stdio.h> main() { char*s={"ABC"}; do { printf("%d",*s%10); s++; } while(*s); } 注意字母A的ASCII码值为65。程序运行后的输出结果是______。
单选题若某二叉树的前序遍历访问顺序是abdgcefh,中序遍历访问顺序是dgbaedlf,则其后序遍历的结点访问顺序是( )。
单选题某二叉树共有12个节点,其中叶子节点只有1个,则该二叉树的深度为(根节点在第l层)______。
单选题有以下程序:
#include
int funl(int a,int b)
{return a+b;}
int flun2(int a,int b)
{retum a—b;}
int fun(int(*t)(int,int),int x,int y)
{return((*t)(x,y));}
main()
{
int x;
x=fun(funl,9,3);
x+=fun(fun2,8,3);
printf(“%d\n”,x);
}
程序运行后的输出结果是( )。
单选题已知各变量的类型说明如下: int k,a,b; unsigned long w=5; double x=1.42; 则以下不符合C语言语法的表达式是
单选题下列叙述中正确的是
单选题下列叙述中正确的是______。
单选题若要定义一个具有5个元素的整型数组,以下错误的定义语句是
单选题为了建立如图所示的存储结构(即每个结点含两个域,data是数据域,next是指向结点的指针域)则在( )处填入的选项是( )。
*struetlink{ehardata;( )node;