单项选择题

设有以下语句
int a=1,b=2,c;
c=a^(b<<2);
执行后,c的值为()。

A.6
B.7
C.8
D.9

<上一题 目录 下一题>
热门 试题

单项选择题
设fp为指向某二进制文件的指针,且已读到此文件末尾,则函数feof(fp)的返回值为()。

A.EOF
B.非0值
C.0
D.NULL

单项选择题
有以下程序段 struct st {int x;int *y;}*pt; int a[]={1,2},b[]={3,4}; struct st c[2]={10,a,20,b}; pt=c; 以下选项中表达式的值为11的是()。

A.*pt->y
B.pt->x
C.++pt->x
D.(pt++)->x

相关试题
  • 执行以下程序后,test.txt文件的内容是(...
  • 有以下程序 void fun 1 (char *p)...
  • 有以下程序 #include <stdio.h> mai...
  • 有以下程序 main() {int i,j,x=0...
  • 有以下程序 int fun(int x[],int n...