summaryrefslogtreecommitdiffstats
path: root/main.cpp
blob: dd41600354a410d87d8bf534bd83730de995351f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

int add_one(int x);

int main() {
	std::cout << "hello world\n";
	int* x = nullptr;
	int y = 2;
	x = &y;
	std::cout << *x << '\n';
	auto z = add_one(*x);
	std::cout << z << '\n';
	return *x;
}