Horje
C++ Swap Function Code Example
C++ Swap Function
    int a, b;

    cout << "Input first number: ";
    cin >> a;
    cout << "Input second number: ";
    cin >> b;

    swap (a, b);

    cout << "After swapping the first number: " << a << endl;
    cout << "After swapping the second number: " << b << endl;




Cpp

Related
c++ arrray Code Example c++ arrray Code Example
c++ string contains Code Example c++ string contains Code Example
c++ cast to type of variable Code Example c++ cast to type of variable Code Example
how to return char* from function in c++ Code Example how to return char* from function in c++ Code Example
shuffle elements c++ Code Example shuffle elements c++ Code Example

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