Untitled

Anonymous
c_cpp
02/15/2024 5:20 PM
244 B
18
Indexable
#include <iostream>
using namespace std;

void foo(int &a, int &b) {
	int c = a;
	a = b;
	b = c;
	cout << a << ' ' << c;
}

int main() {
	int a = 0, b = 1;
	foo(a, b);
}
Editor is loading...
Leave a Comment