首页/ 题库 / [单选题]下面程序的输出是( )main(){ s的答案

下面程序的输出是( )main(){ struct cmplx{int x;int y;}cnum[2]={1,3,2,7};printf(%d ,cnum[0]y/cnum[0]xcnum[1]x); }

单选题
2021-09-06 20:33
B、1
C、3
D、6
查看答案

正确答案
D

试题解析

感兴趣题目
设t=2,b=3,c=4,d=5,则下面语句输出的是( )。 Print3>2*b Or a=c And bc Or c>d
下列程序段运行后窗体上输出结果为( )。 Private Sub Command1_Click() a=5: b=4: c=3: d=2 x=3>2*b Or a=c And b<>c Or c>d Print x End Sub
下列程序段运行后窗体上输出结果为( )。 Private Sub Command1 Click() a=5:b=4:c=3:d=2 X=3>2*b Or a=c And b<>C Or c>d Print X End Sub
以下程序的输出结果是 ( ) #include<stdio.h> main() {struct stru{int a,b: char c[6]; }: printf("%d ",sizeof(stru)), }
C/C++、Pascal、Fortran等是编译型程序设计语言,而早期的Basic语言是解释型程序设计语言。
有如下程序段#include "stdio.h"typedef union{ long x[2]; int y[4]; char z[8];}atx;typedef struct aa { long x[2]; int y[4]; char z[8];} stx;main(){ printf("union=%d,struct aa=%d\n",sizeof(atx),sizeof(stx));}则程序执行后输出的结果是A.union=8,struct aa=8 B.union=8,struct aa=24C.union=24,struct aa=8 D.union=24,struct aa=24
有以下程序 struct s { int x,y; } data[2]={10,100,20,200}; main() struct s *p=data; printf("%d ",++(p->x)); 程序运行后的输出结果是
有以下程序: #include <stdio.h> struct s { int x,y;} data[2]={10,100,20,200}; main() { struct s *p=data; printf("%d ",++(p->x)); 程序运行后的输出结果是( )。
以下程序的输出结果是 #include<stdio.h> main() { union un{ int i; long k; char c;}; struct byte{ int a; long b; union un c;}r; printf("%d ",sizeof(r));}
以下程序的输出结果是( ) # include<stdio.h> main() { union un{int i; long k; char c; }; struct byte{ int a; long b; union un c; } r; printf("%d ",sizeof(r)); }
下面程序的输出结果是( )。 main() {struct m1{int a;int b;}en[2]={1,3,2,7); printf("%d ",en[0].b/en[0].a*en[1].a);
有以下程序: #include<stdio.h> #define X 5+6 main() {int a=2,c; C=X*2: printf("%d",C); } 程序运行后的输出结果是( )。
相关题目
C语言规定:在一个源程序中,main函数的位置(B
C语言规定:在一个源程序中,main函数的位置(B
下面程序的输出结果是 ( ) main( ) { int i,x=023; printf("%d ",- -x); }
C语言程序主函数的函数名是Main。
下面程序的输出是( )main(){ struct cmplx{int x;int y;}cnum[2]={1,3,2,7};printf(%d ,cnum[0]y/cnum[0]xcnum[1]x); }
根据下面程序及数据的输入和输出形式,main(){char ch1,ch2,ch3;输入语句printf(%c%c%c,ch1,ch2,ch3);}, 输入形式:AuBuC输出形式:AuB, 程序中输入语句的正确形式应该为( )(u代表空格)
在C语言程序中,main函数的位置()
C语言规定,在一个C程序中,main()函数的位置( )。
c语言规定,在一个源程序中,main函数的位置( )。
C语言规定,在一个源程序中,main函数的位置
C语言规定,在一个源程序中,main函数的位置( )。
有以下程序 main() { int c=35; printf("%d ",c&c); } 程序运行后的输出结果是______。
有以下程序main(){ int c=35;printf(“%d ”,c&C) ;} 程序运行后的输出结果是
有以下程序: main() { int c=35; printf("%d ",c&c);} 程序运行后的输出结果是( )。
以下程序的输出结果是main(){ int c=35; printf("%d\n",c&c);}
以下程序的输出结果是main( ){ int c=35;printf("%d\n",c&c);}
有以下程序: main() { int c=35;printf("%d ",e&c);} 程序运行后的输出结果是 ______。
下面程序的输出结果是 ( ) main( ) { char x=040; print{("%d ",x=x<<1);}
设t=2,b=3,c=4,d=5,则下面语句输出的是( )。 Print3>2*b Or a=c And b<>c Or c>d
设a2,b=3,c=4,d=5,则下面语句的输出是Print 3>2*b Or a=c And b<>c Or c>d
广告位招租WX:84302438

免费的网站请分享给朋友吧