// PL1/byreference3.cpp // Use of a reference variable // Niels Walet, last updated 04/12/2019 #include<iostream> int main() { int number{4}; int &reference{number}; std::cout<<number<<" "<<reference<<std::endl; number++; std::cout<<number<<" "<<reference<<std::endl; return 0; } |