单选题若有以下程序:
#include <stdio.h>
main( )
{ int a=6,b=0, c=0;
for (;a;) {b + = a; a - = + + c; }
printf("%d,%d,%d/n",a,b,c);
则程序的输出结果是______。
单选题以下函数按每珩8个输出数组中的数据 void fun( iht*w, int n) inti; for(i=0;i<n,i++) ______ printf("%d",w[i]); printf("/n"); 下划线处应填入的语句是______。 A) if(i/8=0)printf("/n); B) if(i/8=0)continue; C) if(i%8=0)printf("/n"); D) if(i%8=0)continue;
单选题有以下程序:
#include<stdio.h>
#include<string.h>
main( )
{ char str[ ]={"Hello,Beijing"};
printf("%d,%d/n",strlen(str),sizeof(str));
}
程序的运行结果是______。
单选题设有如下定义:int a=1,b=2,c=3,d=4,m=2,n=2;则执行表达式:(m=a>b)&&(n=c>d)后,n的值为______。
单选题有以下程序 #include<stdio.h> #include<string.h> typedef structchar name[9];char sex;float score[2];)STU; STU f(STU a) STU b="Zhao",'in',85.0,90.0);int i; strcpy(a.name,b.name); a.sex=b.sex; for(i=0;i<2;i++) a.score[i]=b.score[i]; return a; main() STU c="Qian",'f',95.0,92.0,d; d=f(c);printf("%s,%c,%2.0f,%2.0f",d.name,d.sex,d.score[0],d.score[1]); 程序的运行结果是( )。
单选题若有定义:double a=22; int i=0, k=18;,则不符合C语言规定的赋值语句是______。
单选题以下叙述中错误的是( )。
单选题有以下稗宇:
#include
main()
{ int a=1,b=2,c=3,x;
x=(a^b.&c:
printf(“%d\n”,x);
}
程序的运行结果是( )。
单选题以下与函数fseek(fp,0L,SEEK_SE乃有相同作用的是( )。
单选题有以下程序:
#include<stdio.h>
main()
{
int i;
for(i=1;i<=40;i++)
{
if(i++%5==0)
if(++i%8==0)
printf("%d",i);
}
printf("/n");
程序的运行结果是______。
单选题以下程序的运行结果是______。
#include<stdio.h>
void fun(int*p, int*q)
{
printf("%d%d", *p, *q);
*p=7;
*q=8;
}
int main()
{
int x=55, y=66;
fun(
printf("%d%d/n", x, y);
return 0;
}
单选题若执行下述程序时,从键盘输入的数据是3和6,则程序的输出结果是( )。 #include <stdio.h> void main() int x,y,z; scanf("%d%d", z = y + x; if (x<y) z = y + x; printf("%d",z);
单选题关于C语言的符号常量,以下叙述中正确的是______。
A.符号常量是指在程序中通过宏定义用一个符号名来代表一个常量
B.符号常量的符号名是标识符,但必须大写
C.符号常量在整个程序中其值都不能再被重新定义
D.符号常量的符号名必须是常量
单选题若有以下程序段
int m=0xabc,n=0xabc;
m-=n;
printf("%X/n",m);
执行后输出结果是( )。
单选题以下选项中关于C语言常量的叙述错误的是______。
单选题下面属于“类-对象”主要特征的是______。
单选题以下程序的输出结果是______。 int x=3; main() int i; for(i=1; i<x; i++) incre(); incre() static int x=1; x*=x+1; printf(" % d", x);
单选题软件系统总体结构图的作用是
单选题一棵二叉树中共有80个叶子结点与70个度为1的结点,则该二叉树中的总结点数为
单选题以下程序的输出结果是______。 #include <stdio.h>
#include <string.h> main() {
char*p="abcde/0fghjik/0"; printf("% d/n", strlen(p));
}
A.12
B.15
C.6
D.5