A.3
B.5
C.7
D.8
[单选题]有以下程序#include "stdio.h"main(){ struct date {int year,month,day;}today; printf("%d\n",sizeof(struct date));}程序的运行结果是A.6 B.8C.12 D.10
[单选题]以下程序的运行结果是 #include"stdio.h" main() { struct date { int year,month,day;}today; printf("%d/n",sizeof(struct date));}A.6B.8C.10D.12
[单选题]有以下程序#include "stdio.h"main() { char str[]="tomeetme",str1[]="toseeyou"; char *p=str,*p1=str1; int i; for(i=0;i if(*(p+i)==*(p1+i)) putchar(*(p+i)); printf("\n");}程序的运行结果是A.to B.tomeetC.toeeD.程序段不能通过编译
[单选题]有如下程序段#include "stdio.h"typedef struct aa{ int a; struct aa *next;} M;void set(M *k,int i,int *b){ int j,d=0; for(j=1;j<i;j++) { k[j-1].next=&k[j]; k[j-1].a=b[d++]; } k[j].a=b[d];}main(){ M k[5],*p; int d[5]={23,34,45,56,67}; set(k,5,d); p=k
[单选题]有下列程序: #include " stdio.h" main() { int x=0; int y=0; while (x<7&&++y) { y--; x++;} printf("%d,%d",y,x); } 程序的输出结果是( )。A.0, 7B.7, 7C.0,6D.1,6
[单选题]有下列程序:#include"stdio.h"main(){ int x=0;int y=0;while(x<7&&++y){ y--;x++;}printf("%d,%d",y,x);}程序的输出结果是( )。A.0,7B.7,7C.0,6D.1,6
[主观题]以下程序的输出结果是#include "stdio.h"main(){ int a=065; printf("%d\n",--a);}
[单选题]现有如下程序段#include "stdio.h"main(){ int k[30]={12,324,45,6,768,98,21,34,453,456};int count=0,i=0;while(k[i]){ if(k[i]%2==0||k[i]%5==0)count++;i++; }printf("%d,%d/n",count,i);}则程序段的输出结果为A.7,8B.8,8C.7,10D.8,10
[单选题]现有如下程序段#include "stdio.h"main(){ int k[30]={12,324,45,6,768,98,21,34,453,456};int count=0,i=0;while(k[i]){ if(k[i]%2==0||k[i]%5==0)count++;i++; }printf("%d,%d/n",count,i);}则程序段的输出结果为A.7,8B.8,8C.7,10D.8,10
[单选题]现有如下程序段#include "stdio.h"main( ){ int a[5][6]={23,3,65,21,6,78,28,5,67,25,435,76,8,22,45,7,8,34,6,78,32,4,5,67,4,21,1};int i=0,j=5;printf("%d/n",*(&a[0][0]+2*i+j-2));}则程序的输出结果为A.21B.78C.23D.28