用户名: 密码: 企业 个人
当前位置:89学习网范文文章招聘应聘笔试2017年完美世界校园招聘笔试题» 正文

2017年完美世界校园招聘笔试题

[05-15 14:50:43]   来源:http://www.89xue.com  笔试   阅读:90
摘要:};bool f;struct st *next;};struct st{char ch , *ptr;union{short a , b;unsigned int c : 2 , d : 1;};bool f;struct st *next;};的大小是:A、14字节 B、16字节 C、20字节 D、24字节11、32位小端字节序的机器上,如下代码:[cpp] view plaincopyprint?char array[12] = {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08};short *pshort = (short *)array;in。
2017年完美世界校园招聘笔试题,标签:笔试范文,http://www.89xue.com

  };

  bool f;

  struct st *next;

  };

  struct st

  {

  char ch , *ptr;

  union

  {

  short a , b;

  unsigned int c : 2 , d : 1;

  };

  bool f;

  struct st *next;

  };

  的大小是:

  A、14字节 B、16字节 C、20字节 D、24字节

  11、32位小端字节序的机器上,如下代码:

  [cpp] view plaincopyprint?

  char array[12] = {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08};

  short *pshort = (short *)array;

  int *pint = (int *)array;

  int64 *pint64 = (int64 *)array;

  printf("0x%x , 0x%x , 0x%x , 0x%x", *pshort , *(pshort+2) , *pint64 , *(pint+2));

  char array[12] = {0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08};

  short *pshort = (short *)array;

  int *pint = (int *)array;

  int64 *pint64 = (int64 *)array;

  printf("0x%x , 0x%x , 0x%x , 0x%x", *pshort , *(pshort+2) , *pint64 , *(pint+2));

  输出结果为:

  A、0x201 , 0x403 , 0x807060504030201 , 0x0 B、0x201 , 0x605 , 0x807060504030201 , 0x0

  C、0x201 , 0x605 , 0x4030201 , 0x8070605 D、0x102 , 0x506 , 0x102030405060708 , 0x0

  E、0x102 , 0x304 , 0x1020304 , 0x5060708 F、0x201 , 0x605 , 0x4030201 , 0x6050403

  12、有关引用,下列说法错误的是:

  A、引用定义时必须初始化

  B、类的非静态引用成员变量不需要在构造函数中初始化

  C、数组可以有引用,但没有引用数组

  D、public派生对象可以初始化基类类型的引用

  E、整型数据的常引用可以直接用数值初始化

  F、以上选项都不是

  13、Windows PE文件装载到的地址为:

  A、0x0030000 B、0x0040000 C、任意地址 D、0x10000000

  14、以下哪些对象可用于Windows进程间通信:

  A、事件 B、临界区 C、互斥量 D、共享内存

上一页  [1] [2] [3] 


Tag:笔试笔试范文招聘应聘 - 笔试