dotfiles/.config/Code/User/History/57898c00/V294.cpp
RafayAhmad7548 4f46de8d00 update
2024-09-09 16:59:28 +05:00

25 lines
No EOL
254 B
C++

/*
Rafay Ahmad
23I-2526
*/
#include <iostream>
using namespace std;
template <class T>
void swapValues(T& a, T& b){
a = a + b;
b = a + b;
a = a - b;
}
int main(){
int a = 5;
int b = 3;
swapValues<int>(a, b);
return 0;
}