单选题有以下程序:
#include<stdio.h>
int a=1;
int f(int c)
{ static int a=2;
c=c+1;
return(a++)+c;
}
main()
{ int i, k=0;
for(i=0; i<2; i++){int a=3; k+=f(a); }
k+=a;
printf("%d/n", k);
}
程序运行结果是______。
单选题有以下程序:
#nclude
void main()
{char a,b,c,d;
scanf(''%c%c'',&a,&b);
c=getchar();d=getchar();
pfintf(''%c%c%c%c\n'',a,b,c,d);
}
运行程序后输入数据(代表回车符)
34
56
则输出结果是( )。
单选题下列叙述中错误的是( )。
单选题有以下程序:
#include <stdio.h>
void fun(int a,int b,int c)
{ a=b; b=c; c=a; }
main( )
{ int a=10, b=20, c=30;
fun(a,b,c);
printf("%d,%d,%d/n",c,b,a);
}
程序运行后的输出结果是______。
单选题有以下程序 int f(int
单选题设有定义:
int a=1, b=2, c=3;
以下语句中执行效果与其他三个不同的是______。
单选题有下列程序:
#include<stdio.h>
#include<string.h>
Stmct A
{ int a;char b[10];double c;};
struct A f(struct A t);
main()
{struct A a=<1001,"ZhangDa",1098.0};
a=f(A) ;printf("%d,%s,%6.1f/n",a.a,a.b,a.C) ;
}
struct A f(Struct A t)
{ t.a=1002;strcpy(t.b,"ChangRong");t.c=1202.0;return t;}
程序运行后的输出结果是( )。
单选题下列不是合法的C语言语句是( )。
单选题以下叙述中正确的是
单选题以下叙述中错误的是
单选题以下选项中,合法的一组C语言数值常量是( )。
单选题有以下程序: #include<stdio.h> main() { int i; char *a[]={"abcd","ef","gh","ijk"}; for(i=0;i<4;i++) printf("%c",* a[i]); } 程序运行后的输出结果是( )。
单选题已知下列函数定义: fun(int *b,int c,int n,int data) { int k; for(k=0;k<m*n;k++) {*b=data; b++;} } 则调用此函数的正确写法是(假设变量a的说 明为int a[50])( )。
单选题以下程序的输出结果为( )。 int a,b,C; a=10; b=50; C=30; if(a<b) a=b; b=C; c=a; printf("a=%d,b=%d,c=%d",a,b,C);
单选题有以下程序
#include<stdio.h>
main()
{int i,j=0;
char a[]="ab123c4d56ef7gh89";
for(i=0;a[i];i++)
if(a[i]>="0"
a[j]="/0";
printf("%s",a);
}
程序执行后的输出结果是______。
单选题DOS操作系统中的文件系统是如何组织的?( )
单选题有以下程序: int f(int b[][4]) int i, j, s=0; for(j=0; j<4; j++) i=j; if(i>2)i=3-j; S+=b[i][j]; return s; main() int a[4][4]=1, 2, 3, 4, 0, 2, 4, 6, 3, 6, 9, 12, 3, 2, 1, 0; printf("%d/n", f(a)); 执行后的输出结果是______。 A) 12 B) 11 C) 18 D) 16
单选题
单选题若有如下程序: main() {char a[]={"1234"};int i,t=0; for(i=0;a[i]>='0'&&a[i]<='9';i+=2) t=10*t+a[i]一-'0'; printf("%d/n',t);} 则程序运行后的输出结果是( )。
单选题有以下程序#include<stdio.h>main(){ int i,j,m=1; for(i=1;i<3;i++) { for(j=3;j>0;j--) { if(i*j>3)break; m*=i*j; } }printf(“m=%d\n",m);}程序运行后的输出结果是