单项选择题

有以下函数 #include mian() {int a=12,c; c=(a<<2)<<1; printf(“%d\n”,c): } 程序运行输出结果是(  )。

A.3
B.50
C.2
D.96
<上一题 目录 下一题>
热门 试题

单项选择题
有以下函数#include struct stu{int mun; char name[10]; int age;};viod fun(struct stu *p){ printf(“%s n”,p->name);}mian(){ struct stu x[3]={{01,”zhang”,20},{02,”wang”,19},{03,”zhao”,18}};fun(x+2);}程序运行输出结果是( )。
A.zhang
B.zhao
C.wang
D.19
单项选择题
设有以下程序段Struct MP3 {char name[20];Char color;Float price;}std,*ptr;ptr=& std;若要引用结构体变量std中的color成员,写法错误的是( )。
A.std.color
B.ptr-> color
C.std-> color
D.(*ptr) .color
相关试题
  • 设文件test.txt中原已写入字符串Begin,执...
  • 有以下程序#include mian(){int arr...
  • 以下程序段的输出结果是( )。#include...
  • 以下程序的输出结果是( )。#include ...
  • 以下程序的功能是输出a数组中的所有字符串...