用户名: 密码: 企业 个人
当前位置:89学习网范文文章招聘应聘笔试摩托罗拉通讯笔试题» 正文

摩托罗拉通讯笔试题

[10-16 20:00:41]   来源:http://www.89xue.com  笔试   阅读:90
摘要:{char *p1;char *p2;p1=(char *)malloc(25);p2=(char *)malloc(25);strcpy(p1,”Cisco”);strcpy(p2,“systems”);strcat(p1,p2);printf(“%s”,p1);}Answer: CiscosystemsThe following variable is available in file1.c, who can access it?:static int average;Answer: all the functions in the f。
摩托罗拉通讯笔试题,标签:笔试范文,http://www.89xue.com
  {

  char *p1;

  char *p2;

  p1=(char *)malloc(25);

  p2=(char *)malloc(25);

  strcpy(p1,”Cisco”);

  strcpy(p2,“systems”);

  strcat(p1,p2);

  printf(“%s”,p1);

  }

  Answer: Ciscosystems

  The following variable is available in file1.c, who can access it?:

  static int average;

  Answer: all the functions in the file1.c can access the variable.

  WHat will be the result of the following code?

  #define TRUE 0 // some code

  while(TRUE)

  {

  // some code

  }

  Answer: This will not go into the loop as TRUE is defined as 0.

  What will be printed as the result of the operation below:

  int x;

  int modifyvalue()

  {

  return(x+=10);

  }

  int changevalue(int x)

  {

  return(x+=1);

  }

  void main()

  {

  int x=10;

  x++;

  changevalue(x);

  x++;

  modifyvalue();

  printf(“First output:%dn”,x);

  x++;

  changevalue(x);

  printf(“Second output:%dn”,x);

  modifyvalue();

  printf(“Third output:%dn”,x);

  }

  Answer: 12 , 13 , 13

  What will be printed as the result of the operation below:

  main()

  {

  int x=10, y=15;

  x = x++;

  y = ++y;

  printf(“%d %dn”,x,y);

  }

  Answer: 11, 16

  What will be printed as the result of the operation below:

  main()

  {

  int a=0;

  if(a==0)

  printf(“Cisco Systemsn”);

  printf(“Cisco Systemsn”);

  }

  Answer: Two lines with “Cisco Systems” will be printed.

上一页  [1] [2] 


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