blob: 8a32a233ab6882924855017871fed38db4a76f96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <iostream>
int x, *p;
int main() {
x = 41;
std::cout << x << "\n";
p = &x;
*p = *p + 1;
std::cout << x << "\n";
int &r = x;
r = r + 1;
std::cout << x << "\n";
}
|