fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a= 5;
  7. int& r = a;
  8. const int& n = 2;
  9. int&& p = 3;
  10. p = 10;
  11. const int&s = a;
  12. std::cout << "value of p: " << p<< "\n";
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
value of p: 10