This commit is contained in:
RafayAhmad7548 2024-09-09 16:59:28 +05:00
parent 2992f4f408
commit 4f46de8d00
3330 changed files with 394553 additions and 76939 deletions

View file

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