programming-examples/c++/Overview/CPP Program For Call By Reference.cpp
2019-11-18 14:44:36 +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;
}