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

Tuesday, 13 July 2021

Interview Hack#46 Answer

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

Captionless Image


  1. 2 3
  2. 4 3
  3. 3 2
  4. Compilation error
  5. None Of these

Correct answer

Explanation:

Any expression inside the size of the operator has never changed the value of any variable. So the value of variable I will remain 3. After the evaluation of the expression inside size of the operator, we will get an integer value. So the value of variable val will be the size of the int data type.

0 comments:

Post a Comment