In C++,  Which of the following statements properly declares a reference called r? Group of answer choices int z = 3; int &r; int z = 3; int &r = z; int z = 3; int *r = &z; int z = 3; int r = &z;

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter1: A First Program Using C#
Section: Chapter Questions
Problem 1E: Indicate whether each of the following C# programming language identifiers is legal or illegal. If...
icon
Related questions
Question
100%

In C++, 

Which of the following statements properly declares a reference called r?

Group of answer choices
int z = 3; int &r;
int z = 3; int &r = z;
int z = 3; int *r = &z;
int z = 3; int r = &z;
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning