Q1: Which of the following statements is correct?
  1. We can return a global variable by reference.
  2. We cannot return a local variable by reference.

A Only 2 is correct.

B Only 1 is correct.

C Both 1 and 2 are incorrect.

D Both 1 and 2 are correct.

ANS:B - Only 2 is correct.

No answer description is available. Let's discuss.

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.