Given an integer variable i, declare a reference variable r that is a reference to i.
LANGUAGE: C++
CHALLENGE:
Given an integer variable i, declare a reference variable r that is a reference to i.
SOLUTION:
int& r = i;
Given an integer variable i, declare a reference variable r that is a reference to i.
int& r = i;