单项选择题

下列程序的输出结果是( )。

#include<stdio.h>

main()

stmct st

int y,x,z;

;

union

long i;

int j;

char k;

un;

printf("%d,%d\n",sizeof(stmct st),sizeof(un));

A.6,2
B.6,4
C.8,4
D.8,6
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的运行结果是( )。 #include<stdio.h> #include<string.h> main() char*s1= abDuj ; char*s2= ABdUG ; int t; t=strcmp(s1,s2) ; printf( %d ,t);
A.正数
B.负数
C.零
D.不确定的值
单项选择题
下列程序的运行结果是( )。 main() int a=-5,b=1,c=1; int x=0,y=2,z=0; if(c>0) x=x+y; if(a<=0) if(b>0) if(c<=0) y=x-y; else if(c>0) y=x-y; else z=y; printf( %d,%d,%d n ,x,y,z);
A.2,2,0
B.2,2,2
C.0,2,0
D.2,0,2
相关试题
  • 下列程序的输出结果是______。 #de...
  • 设有下列程序: #include<stdio.h> ...
  • 设有下列的程序段: char str[]= Hel...
  • 下列程序的功能是对输入的一行字符中的数字...
  • 若有定义int a[4][4]=1,2,3,...