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

Tuesday, 29 June 2021

Interview Hack#32 Answer

What will be the output of the following program?

  1. Address, Address, 3
  2. Address, 3, 3
  3. 3, 3, 3
  4. Compilation error
  5. None of these

Correct Answer 1)Address, Address, 3

Explanation:

Value of k is memory location defined for k.

Value of *k means the content of memory location which address k keeps.

**k will equal to 3.
As
**k = **(&j) = *(*&j) = *j = *(&i) = *&i = i = 3  

0 comments:

Post a Comment