[主观题]

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

}

参考答案与解析:

相关试题

What will be the output of the follow C

[主观题]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);}

  • 查看答案
  • What do the following declarations mean?

    [主观题]What do the following declarations mean?a) const int a;b) int const a;c) const int *a;d) int * const a;e) int const * a const;

  • 查看答案
  • What does the following function return?

    [主观题]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;}

  • 查看答案
  • What do the following declarations mean?

    [主观题]What do the following declarations mean?a) const int a;b) int const a;c) const int *a;d) int * const a;e) int const * a const;

  • 查看答案
  • The following data pertain to the total output in units and average selling prices in an economy tha

    [单选题]The following data pertain to the total output in units and average selling

  • 查看答案
  • What will the following C code do? int *

    [主观题]What will the following C code do?int *ptr;ptr =(int *)Ox67a9;*ptr = Oxaa55;

  • 查看答案
  • Which of the following fails to tell what birds do according to the passage?

    [单选题]Which of the following fails to tell what birds do according to the passage

  • 查看答案
  • What should an analyst recommend based on the following information for two mutually exclusive proje

    [单选题]What should an analyst recommend based on the following information for two

  • 查看答案
  • What should an analyst recommend based on the Following information for two independent projects?<

    [单选题]What should an analyst recommend based on the Following information for two

  • 查看答案
  • And much of what I stumbled into by following my___and intuition turned out to be priceless later on

    [单选题]And much of what I stumbled into by following my___and intuition turned out

  • 查看答案
  • What will be the output of the following