Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Sunday, 27 June 2021

Interview Hack#30 Answer

 What will be output if you will execute the following c code?

  1. 0
  2. It will be difference of a and b
  3. It will be addition of a and b
  4. Compilation error

Answer: 4. Compilation error

Explanation:

Register variables are stored in the CPU. So it has not a memory address. Hence it is incorrect to write &a.

0 comments:

Post a Comment