软件类相关笔试真题(2)

招聘笔试题2018-11-22王华老师

  7. What does the following function return?

  char foo(void)

  {

  unsigned int a = 6;

  iht b = -20;

  char c;

  (a+b > 6) ? (c=1): (c=0);

  return c;

  }

  8. What will be the output of the following C code?

  main()

  {

  int k, num= 30;

  k =(num > 5 ? (num <=10 ? 100:200): 500);

  printf(“%d”, k);

  }

  9. What will the following C code do?

  int *ptr;

  ptr =(int *)Ox67a9;

  *ptr = Oxaa55;

  10. What will be the output of the follow C code?

  #define product(x) (x*x)

  main()

  {

  int i = 3, j, k;

  j = product(i++);

  k = product(++i);

  printf(“%d %d”,j,k);

  }

  11. Simplify the following Boolean expression

  !((i ==12) || (j > 15))

  12. How many flip-flop circuits are needed to spanide by 16?

  13. Provides 3 properties that make an OS, a RTOS?

相关推荐

猜你喜欢

大家正在看

换一换