有以下程序:include main( ) {int a =0,b =0,c =0,d =0; if(a = 1) b=1;c=2; else d=3 有以下程序:#include <stdio.h>main( ) { int a =0,b =0,c =0,d =0; if(a = 1) b=1;c=2; else d=3; pfintf( "%d,%d,%d ,%d \n" ,a,b,c,d);}A.0,1,2,0B.0,0,0,3C.1,1,2,0D.编译有错
有以下程序:include main( ) {int a =0,b =0,c =0,d =0; if(a = 1) b=1;c=2; else d=3
有以下程序:#include <stdio.h>main( ) { int a =0,b =0,c =0,d =0; if(a = 1) b=1;c=2; else d=3; pfintf( "%d,%d,%d ,%d \n" ,a,b,c,d);}
A.0,1,2,0
B.0,0,0,3
C.1,1,2,0
D.编译有错
相关考题:
以下程序的输出结果是( )。 includefun(){ int a=0;a+=3;printf("%d",A); } main() {int 以下程序的输出结果是( )。include<stdio.h>fun(){ int a=0;a+=3;printf("%d",A);}main(){ int cc;for(cc=1;cc<=4;cc++)fun();printf("\n");}
有以下程序:include void sum(int *a){a[0]=a[1];}main(){int aa[10]={1,2,3,4,5,6,7, 有以下程序: #include <stdio.h> void sum(int *a) { a[0]=a[1]; } main() { int aa[10]={1,2,3,4,5,6,7,8,9,10},i; for(i=2;i>=0;i--) sum(aa[i]); printf("%d\n",aa[0]); } 执行后的输出结果是( )。A.4B.3C.2D.1
有以下程序 include main() { FILE *fp; int' a[10]={1,2,3,0,0},i; 有以下程序 #include <stdio.h> main() { FILE *fp; int' a[10]={1,2,3,0,0},i; fp = fopen("d2.dat", "wb"); fwrite(a, sizeof(int), 5, fp); fwrite(a, sizeof(int), 5, fp); fclose(fp); fp = fopenCd2.dat", "rb"); fread(a, sizeof(int), 10, fp); fclose(fp); for (i=0; i<10; i++) printf("%d,", a[i]); }A.1,2,3,0,0,0,0,0,0,0,B.1,2,3,1,2,3,0,0,0,0,C.123,0,0,0,0,123,0,0,0,0,D.1,2,3,0,0,1,2,3,0,0,
有以下程序:includeunion pw{ int i;char ch[2];}a;main(){ a.ch[0]=13;a.ch[1]=0;pri 有以下程序: #include<stdio.h> union pw { int i; char ch[2];}a; main() { a.ch[0]=13;a.ch[1]=0;printf("%d\n",a.i);} 程序的输出结果是A.13B.14C.208D.209
有以下程序,程序执行后,输出结果是【】include void fun(int*A) {a[0]=a[1];} main() {i 有以下程序,程序执行后,输出结果是【 】include<stdio.h>void fun(int*A){ a[0]=a[1];}main(){ int a[10]={10,9,8,7,6,5,4,3,2,1,},i;for(i=2;i>1=0;i-) fun(a[i]);for(i=0;i<10;i++) printf("%d,a[i]);printf("\n");}
有以下程序includemain(){int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=0;for(i=0;i 有以下程序 #include<stdio.h> main() {int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=0; for(i=0;i<3;i++) for(j=2;j>=i;j--)t+=b[i][j]; printf("%d\n",t); } 程序运行后的输出结果是( )。A.4B.3C.8D.9
有以下程序:includemain(){ FILE *fp;int a[10]={1,2,3,0,0},i;fp=fopen("d2.dat","wb 有以下程序: #include<stdio.h> main() { FILE *fp;int a[10]={1,2,3,0,0},i; fp=fopen("d2.dat","wb"); fwrite(a,sizeof(int),5,fp); fwrite(a,sizeof(int),5,fp); fclose(fp); fp=fopen("d2.dat","rb"); fread(a,sizeof(int),10,fp); fclose(fp); for(i=0;i<10;i++)printf("%d,",a[i]); } 程序的运行结果是( )。A.1,2,3,0,0,0,0,0,0,0,B.1,2,3,1,2,3,0,0,0,0,C.123,0,0,0,0,123,0,0,0,0,D.1,2,3,0,0,1,2,3,0,0,
有以下程序#include "stdio.h"void fun(int *a,int *b,int c){ c=*a+*b; }main(){ int a[2]={6,9},c=0; fun(a,a+1,c); printf("%d\n",c);}程序输出的结果是 A.6 B.9C.0 D.15
有以下程序:includemain() {int a[3][3],*p,i; p=a[0][0]; for(i=0;i 有以下程序: #include <stdio.h> main() { int a[3][3],*p,i; p=a[0][0]; for(i=0;i<9;i++) p[i]=i+1; printf("%d\n",a[1][2]); } 程序运行后的输出结果是( )。A.3B.6C.9D.2