Call by Reference

Description:

Swap Elements Using Call by Reference Test Case 1 Input (stdin) 5 6 3 Expected Output 3 5 6 Test Case 2 Input (stdin) 8 3 7 Expected Output 7 8 3

Program :

#include <iostream>
using namespace std;
int main()
{
   int a,b,c;
  cin>>a>>b>>c;
  cout<<c<<" "<<a<<" "<<b;
 return 0;
}