[主观题]

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 will be the output of the following

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

  • 查看答案
  • I don't quite [follow]what she is saying.

    [单选题]I don't quite [follow]what she is saying.A.observeB. understandC. explainD.

  • 查看答案
  • Directions: For each blank in the follow

    [单选题]D.irections: For each blank in the following passage, there are four choices marked A, B, C and D. Choose the one that is most suitable and mark your answer by blackening the corresponding letter on the answer sheet.In fact, there was hardly any acti

  • 查看答案
  • As the newcomer did not follow the instr

    [单选题]A.s the newcomer did not follow the instructions properly, he __________failure.A. ended up inB. came up withC. stood up toD. looked up to

  • 查看答案
  • 设有语句Open "C:\Test.Dat" For OutPut As #1,

    [单选题]设有语句Open "C:/Test.Dat" For OutPut As #1,则下列叙述错误的是( )。A.该语句只能打开C盘根目录下一个已存在的文件Test.DatB.当C盘根目录下没有该文件时,该语句在C盘根目录下建立名为Test.Dat的文件C.该语句建立文件的文件号为1D.执行该语句后,就可以通过Print#语句向Test.Dat文件中写入信息

  • 查看答案
  • 设有语句Open "C:\Test.Dat",For OutPut As #1,

    [单选题]设有语句Open "C:/Test.Dat",For OutPut As #1,则下列叙述错误的是( )。A.该语句只能打开C盘根目录下一个已存在的文件Test.DatB.当C盘根目录下没有该文件时,该语句在C盘根目录下建立名为Test.Dat的文件C.该语句建立文件的文件号为1D.执行该语句后,就可以通过print#语句向Test.Dat文件中写入信息

  • 查看答案
  • 设有语句Open "C:\Test.Dat" For OutPut As #1,

    [单选题]设有语句Open "C:/Test.Dat" For OutPut As #1,则下列叙述中错误的是( )。A.该语句只能打开C盘根目录下一个已存在的文件Test.DatB.当C盘根目录下没有该文件时,该语句在C盘根目录下建立名为Test.Dat的文件C.该语句建立文件的文件号为1D.执行该语句后,就可以通过Print#语句向Test.Dat文件中写入信息

  • 查看答案
  • Questions 59£­60 are based on the follow

    [单选题]Questions 59-60 are based on the following informationA. hash table With hash functionH.1(k)=k mod 13Is shown below.C.ollision is resolved using the hash function H2(k)=(k mod 11)+1H.ow many key comparisons occur in searching for key 35 in the given

  • 查看答案
  • The follow£­up gear on an electro£­hydra

    [单选题]The follow-up gear on an electro-hydraulic steering gearA.relieves excessive fluid pressureB.takes the pump off stroke when the desired rudder angle is attainedC.allows for rudder movement faster than the movement of the ship&39;sD.returns the rudder

  • 查看答案
  • A What do you mean B What about you C I’

    [试题]A. What do you mean B What about youC. I’m not sure D What a pityE. What do you think F Sounds greatG. Say, why don’t you come with us H Do you mean itJessica: I’m so excited! We have two weeks off! What are going to do?Natasha:__56__. I guess I’ll ju

  • 查看答案
  • What will be the output of the follow C