In which of the following case(s) is it possible to obtain different results…

GATE · 1989 · CS · Question 3 subparts

In which of the following case(s) is it possible to obtain different results for call-by-reference and call-by-name parameter passing?

  1. A.

    Passing an expression as a parameter

  2. B.

    Passing an array as a parameter

  3. C.

    Passing a pointer as a parameter

  4. D.

    Passing as array element as a parameter

Attempted by 22 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…