#include
main()
{ int a=30,b=40,c=50,d;
d=a >30?b:c;
switch(d){case a:printf("%d,",a);
case b:printf("%d,",b);
case c:printf("%d,",c);
default:printf("#");}}
A.default:printf("#");这个语句
B.d=a>30?b:c;这个语句
C.case a:printf("%d,",a); case b:printf("%d,",b); case c:printf("%d,",c);这三个语句
D.switch(d)这个语句
[单选题]现有如下程序段,此程序段编译有错误,则程序段的错误出在includemain(){int a=30,b=40,现有如下程序段,此程序段编译有错误,则程序段的错误出在 #include<stdio.h> main() { int a=30,b=40,c=50,d; d=a>30? b:c; swish(d) { case a: Printf("%d,",a); case b: printf("%d,",b); case c: printf("%d,",c); default print
[主观题]现有如下程序段,则程序段的输出结果为 (16) 。#include "stdio.h"int fun(){static int k;return k;}main(){int m;m=fun();printf("%d\n",m);}
[单选题]现有如下程序段#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 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
[单选题]现有如下程序段#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
[单选题]现有如下程序段#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
[单选题]以下程序段共有错误()处。include using namespaces std;class Sample{private:int n;以下程序段共有错误( )处。 #include <iostream> using namespaces std; class Sample { private: int n; public: Sample (int i) { n=i; } void setvalue(int i) { n=i; } void display() { cout<<"n="<<