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

Friday, 16 July 2021

Interview Hack#49 Answer

 Which of the following statements is correct about the below program?

Captionless Image

  1. 109 97 110
  2. man
  3. compiler Error
  4. Run time Error
  5. None Of these
Correct answer
Explanation:
s[i], i[s] are different ways of expressing the same idea. Generally, the array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, printing it with i[s] is the same as s[i].

0 comments:

Post a Comment