fork download
  1. #include <iostream>
  2.  
  3. void f(int *&&b)
  4. {
  5. ++b;
  6. std::cout << *b;
  7. }
  8.  
  9. int main()
  10. {
  11. int a[] = { 1,2,3,4 };
  12. f(a);
  13. }
Success #stdin #stdout 0s 4540KB
stdin
Standard input is empty
stdout
2