#include <iostream> using namespace std; void increase(int& x) { // x를 참조로 받음 x = x + 1; } int main() { int a = 10; increase(a); cout << a; // 11 }
To embed this project on your website, copy the following code and paste it into your website's HTML: