Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ swap function

int main()
{
	int a = 5;
	int b = 10;
  
	swap(a, b);
  
	cout << "a = " << a << endl;
	cout << "b = " << b << endl;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #swap #function
ADD COMMENT
Topic
Name
4+7 =