Cpp Programming Quiz 30 – Which of the following statements is correct?

Question: 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 1 is correct.
[B].Only 2 is correct.[C].Both 1 and 2 are correct.
[D].Both 1 and 2 are incorrect.

Answer: Option B