diff options
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..dd41600 --- /dev/null +++ b/main.cpp @@ -0,0 +1,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; +} |
