网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列程序的输出结果为( ).  main( )  {int m=7,n=4;  float  a=38.4,b=6.4,x;  x=m/2+n*a/b+1/2;  printf("%f/n",x);  } 

  • A、27.000000
  • B、27.500000
  • C、28.000000
  • D、28.500000

参考答案

更多 “下列程序的输出结果为( ).  main( )  {int m=7,n=4;  float  a=38.4,b=6.4,x;  x=m/2+n*a/b+1/2;  printf("%f/n",x);  } A、27.000000B、27.500000C、28.000000D、28.500000” 相关考题
考题 下列程序的输出结果为 【9】 。main (){int x=3,y=5;printf ("%d",x=(x--)*(--y));}

考题 下面程序的输出结果为______ include void main() {cout 下面程序的输出结果为______include<iostream.h>void main(){cout<<"Hello\b";}

考题 下列程序的输出结果是()。 include VOid p(int *x) {printf("%d",++*x); } void main() 下列程序的输出结果是( )。#include<stdio.h>VOid p(int *x){ printf("%d",++*x);}void main(){ int y=3;p(y);}A.3B.4C.2D.5

考题 下列程序段的输出结果为()。includemain(){static char a[]="language";char*p;p=a;for 下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.1B.4C.9D.0

考题 下面程序的输出结果为【】。 include main() { char a[]="morning",t; int i,j=0; for( 下面程序的输出结果为【 】。include<iostream.h>main(){char a[]="morning",t;int i,j=0;for(i=1;i<7;i++)if(a[j]<a[i])j=i;t=a[j];a[j]=a[7];a[7]=a[j];cout<<a;}

考题 以下程序的输出结果是【】。 include void main( ) } int a=0; a+=(a=8); cout 以下程序的输出结果是【 】。include<iostream.h>void main( )}int a=0;a+=(a=8) ;cout<<a;}

考题 以下程序的输出结果 ______。 include void main() { int a=0; a+ =(a=8); cout 以下程序的输出结果 ______。include<iostream.h>void main(){int a=0;a+ =(a=8);cout<<a;}

考题 下列程序的输出结果是【】。 include using namespace std; int main(){int data=1;int 下列程序的输出结果是【 】。include <iostream>using namespace std;int main(){int data=1;int r = data;data+=5;r+=5;cout<<data<<end 1;return 0;}

考题 下列程序的输出结果是______。 include using namespace std; int main() {int data=l; 下列程序的输出结果是______。include<iostream>using namespace std;int main(){int data=l;int r = data;data+=5;r+=5;cout<<data<<endl;return 0;}

考题 下面程序的输出结果为 【】 。 include void main( ) {int num=0,i=8;do{ i--; num ++ 下面程序的输出结果为 【 】 。include<iostream.h>void main( ){int num=0,i=8;do{i--;num ++;}while(--i);cout<<num<<end1;}

考题 下列程序执行的输出结果是()。 include main() {char a[2][4];strcpy(a,"are");strcpy( 下列程序执行的输出结果是( )。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a [1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.

考题 下列程序段的输出结果为()。includemain(){static char a[]="language"; char*p; p=a; 下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.languageB.lnugC.有语法错误D.lang

考题 下列程序段的输出结果为()。 include main() {static char a[]="language"; char*p; p= 下列程序段的输出结果为( )。#include<stdio.h>main(){ static char a[]="language";char*p;p=a;for(p=a;p<a+8;p+=2)putchar(*p);}A.languageB.lnugC.有语法错误D.lang

考题 下列程序段的输出结果为( )。 include main() { static char a[]="language"; char *p; 下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char *p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.languageB.lnugC.有语法错误D.lang

考题 下面程序的输出结果为_____。 include void main( ) { in num=0,i=8; do{ i--; num+ 下面程序的输出结果为_____。include<iostream.h>void main( ){in num=0,i=8;do{i--;num++;}while(--i) ;cout < < num < < endl;}

考题 下列程序运行时,若输入labcedf2df输出结果为【】。 include main(){char a=0,ch; wh 下列程序运行时,若输入labcedf2df<回车>输出结果为【 】。include<stdio.h>main(){ char a=0,ch;while((ch==getchar())!='\n'){ if(a%2!=0(ch>='a'ch<='z')) ch=ch'a'+'A';a++;prtchar(ch);}printf("\n");}

考题 下列程序舶输出结果是【 】。include main() {int a[5]={2,4,6,8,10},*p;p=a;p++;printf(" 下列程序舶输出结果是【 】。include <stdio.h>main(){int a[5]={2,4,6,8,10},*p;p=a;p++;printf("%d",*p);}

考题 下面程序的输出结果为【】。inclUdevoid main(){ int a;int b=a;//变量引用b=10;c 下面程序的输出结果为【 】。inclUde<iostream.h>void main(){int a;int b=a;//变量引用b=10;cout<<"a="<<a<<endl;}

考题 下列程序的输出结果为()。includevoid main(){int x;int y=x;//变量引用y=99; 下列程序的输出结果为( )。 #include<iostream.h> void main() { int x; int y=x;//变量引用 y=99; cout<<"x="<<x<<end1; }A.x=99B.x=9C.x=0D.异常

考题 下列程序的输出结果为 include void main( ) { char * a[ ] ={"hello},"the"," wo 下列程序的输出结果为#include<iostream.h>void main( ){char * a[ ] ={"hello},"the"," world"};char * * pa=a;pa++;cout < < * pa < < endl;}A.helloB.theC.worldD.hellotheworld

考题 下列程序的输出结果为【】。include void main(){ char a[]="abcdabcabfgacd"; int i1 下列程序的输出结果为【 】。include <iostream. h>void main(){char a[]="abcdabcabfgacd";int i1=0,i2=0,i=0;while (a[i]){if (a[i]=='a') i1++;if (a[i]=='q') i2++;i++;}cout<<i1<<''<<i2<<end1;}

考题 下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c 下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }A.helloB.theC.worldD.hellotheworld

考题 下列程序的输出结果为includevoid main(){char*a[]={"hello","the","world"};char* 下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }A.helloB.theC.worldD.hello the world

考题 下列程序的输出结果为______。 main ( ) { int p, y=0, x=0; p=x>8; printf("%d",p); p+ 下列程序的输出结果为______。 main ( ) { int p, y=0, x=0; p=x<<8 | ~y>>8; printf("%d ",p); p+=(p+=2); printf("%d\n",p); }A.-1 0B.0 0C.0 4D.-1 2

考题 下列程序的输出结果是()。 include main() {int a=4; printf("%d\n",(a+=a-=a*A) ); }A 下列程序的输出结果是( )。#include<stdio.h>main(){ int a=4;printf("%d\n",(a+=a-=a*A) );}A.-8B.14C.0D.-24

考题 下列程序的输出结果为______。 include intmax(intx,inty) {return(x 下列程序的输出结果为______。include<iostream.h>intmax(intx,inty){return(x>y? x:y);)void main( ){int n=3,m=12;max(m,n)++;cout<<"m="<<m<<",n=<<n<<endl;}

考题 下列程序的输出结果为#includevoid main(){char,a[]={”hello",”the",”world”};char**pa=a:pa++;cout*pa}A.helloB.theC.worldD.hellotheworld

考题 以下程序的输出结果为() #include "stdio.h" main( ){int a;for(a=0;a10;a++);printf("%d",a);}