Horje
swap values in array c++ Code Example
swap values in array c++
#include <algorithm>
#include <iostream>

using namespace std;

int main()
{
     int array[]={1, 2};
     cout<<array[0]<<" "<<array[1]<<endl;
     swap(array[0], array[1]);
     cout<<array[0]<<" "<<array[1];
     return 0;
}




Cpp

Related
roscpp publish int32 Code Example roscpp publish int32 Code Example
height of bst cpp Code Example height of bst cpp Code Example
recursive power in c++ Code Example recursive power in c++ Code Example
pbds in c++ Code Example pbds in c++ Code Example
strlen in c++ Code Example strlen in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9