Call By Value Function

in Hindi - Call By Value Function



not yet

Source Code :

RUN#include <iostream>
using namespace std;

void swap(int x, int y);
int main()
{
int a = 14, b = 24;
cout<<"Before Swapping a = "<<a<<" and b = "<<b<<endl;
swap(a, b);
}
void swap(int x, int y)
{
int temp;
temp = x;
x = y;
y = temp;
cout<<"After Swapping a = "<<x<<" and b = "<<y;
}