#include void func(int*&& ptr) { int j = 0; ptr = &j; } int main() { int i = 0; std::cout << &i << std