首页 > 就业 > 笔试

编程人员笔试题

编程人员笔试题



编程人员笔试题

1. 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);

  }

  2. What will the following C code do?

  int *ptr;

  ptr =(int *)Ox67a9;

  *ptr = Oxaa55;

  3. 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);

  }

    版权声明:此文自动收集于网络,若有来源错误或者侵犯您的合法权益,您可通过邮箱与我们取得联系,我们将及时进行处理。

    本文地址:https://www.gunzhua.com/jiuye/bishi/77545.html

相关内容

热门阅读
随机推荐