单项选择题

若有下列程序段:
int r=8;
printf("%d\n",r>>1) ;
输出结果是()

A.16
B.8
C.4
D.2

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

单项选择题
设有定义:char*c;,下列选项中能够使字符型指针c正确指向一个字符串的是( )。
A.char str[]="string";c=str;
B.scanf("%s", ;
C.c=getchar();
D.*c=*string";
单项选择题
下列结构体的定义语句中,错误的是( )。
A.struct ord {int x;int y;int z;};struct ord a;
B.struct ord {int x;int y;int z;}stmct ord a;
C.stmct ord {int x;int y;int z;}a;
D.struct{int x;int y;int z;}a;
相关试题
  • 有下列程序: #include<stdio.h> #i...
  • 有下列程序: #include<stdio.h> mai...
  • 以下程序中,与语句:k=a>b(b>c1:0...
  • 设有定义: int a=1,b=2,c=3;,...
  • 下列关于C语言文件的叙述中正确的是( )。