Return always terminates the function that executed it. main ( ) being a function, will be terminated when it executes the return statement. The return value will be returned to the calling environment, which is the operating system in this case.
Explanation
a [2] will be converted to * (a + 2) * (a + 2) can sas well be written as * (2 + a) * (2 + a) is nothing but 2 [a]. So, a [2] is sam eas 2 [a], which is same as * (2 + a). So, it prints 9 + 9 = 18
Quiz Review Timeline (Updated): Mar 20, 2022 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.