A.to
B.tomeet
C.toee
D.程序段不能通过编译
[单选题]以下程序的运行结果是#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(){ 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 number; float fenzhi; char name; }stu; printf("%d/n",sizeof(stu));} 程序的运行结果是A.3 B.5C.7 D.8
[单选题]有以下程序#includemain(){ char str[][20]={"Hello","Beijing"},*p=str;printf("%d/n",strlen(p+20));}程序运行后的输出结果是A.0B.5C.7D.20
[单选题]现有如下程序段#include "stdio.h"#include "string.h"main(){ char a[]="acfijk"; /*这里是有序的字符序列*/char b[]="befijklqswz"; /*这里是有序的字符序列*/char c[80],*p;int i=0,j=0,k=0;while(a[i]!=′/0′&&b[j]!= ′/0′){ if(a[i]<b[j])c[k++]=a[i++];else if(a[i]>b[j
[单选题]现有如下程序段#include "stdio.h"#include "string.h"main(){ char a[]="acfijk"; /*这里是有序的字符序列*/char b[]="befijklqswz"; /*这里是有序的字符序列*/char c[80],*p;int i=0,j=0,k=0;while(a[i]!=′/0′&&b[j]!= ′/0′){ if(a[i]<b[j])c[k++]=a[i++];else if(a[i]>b[j
[单选题]有下列程序: #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