以下程序的功能是进行位运算:#include <stdio.h>main() unsigned char a,b; a =7∧3; b = ~4&3; printf("% d %d \n" ,a,b);}程序运行后的输出结果是()。
A. 4 3
B. 7 3
C. 7 0
D. 4 0
#include#includestruet A{int a;char b[10];double c;};struct A f(struct A t);main(){struct A a={1001,“ZhangDa”,1098.0);a=f(A);prinff(“%d,%S,%6.1f\n”,a.a,a.b,a.e);}struct A f(struct A t){t.a=1002;strepy(t.b,“changRong”);t.c=1202.O;return t;}程序运行后的输出结果是
A. 1001,ZhangDa,1098.0
B. 1002,ZhangDa,1202.0
C. 1001,ChangRong,1098.0
D. 1002,ChangRong,1202.0
#includeint fun(){static int x=l:X*=2:return X:}main(){int i,s=l:for(i=l;i<=3,i++) s*=fun();printf(“%d\n”,s);}程序运行后的输出结果是A.0B.10C.30D.64
A. 0
B. 10
C. 30
D. 64
有如下程序段 if(x>0) { System.out.println("first");} else if (x > -4) { System.out.println("second");} else { System.out.println("third");} x的取值在什么范围内时,将打印出字符串“second"?
A. x > 0
B. x > -4
C. x < = -4
D. x < = 0 & & x > -4