Answers for "swap c++ library"

C++
3

what library to mention for swap function in c++

#include<bits/stdc++.h>
Posted by: Guest on June-17-2020
0

c++ swap function

int main()
{
	int a = 5;
	int b = 10;
  
	swap(a, b);
  
	cout << "a = " << a << endl;
	cout << "b = " << b << endl;
}
Posted by: Guest on May-08-2021

Browse Popular Code Answers by Language