repl.it
@maniero/

ReferenceBidirecional.cpp

C++11

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
using namespace std;

int main() {
	int a = 5;
	int b = 10;
    int *r = &a;
    cout << *r << endl;
    r = &b;
    cout << *r << endl;
}

//https://pt.stackoverflow.com/q/85700/101