programming-examples/c++/1_Overview/CPP Program For Call By Reference.cpp
2019-11-15 12:59:38 +01:00

32 lines
381 B
C++

#include <iostream.h>
#include <conio.h>
void multi(int &a)
{
int a,b,c;
int *q = &p;
cout<<Enter the b value:
cin>>b;
c=q*b;
cout<<Multiplication of a and b is:
<<c;
}
int main()
{
clrscr();
int a;
cout<<Enter the a value:
cin>>a;
muti(&a);
return 0;
}