赞题库-背景图
单项选择题

以下不属于C语言位运算符的是______。

A.!
B.|
C.^
D.~
<上一题 目录 下一题>
热门试题

单项选择题有以下程序: #include <stdio.h> #include <string.h> typedef struct { char name[10]; char sex; int age;} STU; void fun(STU *t) { strcpy((*t).name, Tong ); (*t).age++; } main() { STU s[2]={ Hua ,’m’,18, Qin ,’f’,19}; fun(s+1); printf( %s,%d,%s,%d n ,s[0].name,s[0].age,s[1].name,s[1].age); } 程序运行后的输出结果是______。

A.Hua,18,Tong,20
B.Hua,18,Qin,19
C.Tong,19,Qin,19
D.Hua,19,Tong,19

单项选择题有以下程序: #include <stdio.h> struct S{ int a; int *b;}; main() { int x1[] = {3,4},x2[]={6,7}; struct S x[]={1,x1,2,x2}; printf( %d,%d n ,*x[0].b,*x[1].b); } 程序的运行结果是______。

A.1,2
B.3,6
C.4,7
D.变量的地址值