Lecture 152
//Procedures and Functions
//Code:
#include <iostream>
#include <conio.h>
using namespace std;
void swapv(int,int);
// Prototype
main ()
{
int a=10,b=20;
swapv(a,b);
cout
<<"\n a =
"<<a<<" b =
"<<b;
getch();
return 0;
}
void swapv(int a,int b)
{
int t;
t=a;
a=b;
b=t;
cout
<<"\n a =
"<<a<<" b =
"<<b;
}
Output: