A

Admin • 802.91K Points
Coach

Q. Which of the following is the correct way to declare a reference in C++?

  • (A) int &ref;
  • (B) int ref&;
  • (C) reference int ref;
  • (D) int ref[];
  • Correct Answer - Option(A)
  • Views: 4
  • Filed under category C++
  • Hashtags:

Explanation by: Admin
In C++, a reference is declared using the '&' symbol after the data type, like 'int &ref;'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.