Program -
Output
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int
mul(int,int),(*p1)(int,int),x,y,z;
cout<<"\n
enter the value of x & y:"<<endl;
cin>>x>>y;
p1=&mul;
z=(*p1)(x,y);
cout<<"\n
final value is:"<<z;
getch();
}
int mul(int a,int
b)
{
int m;
m=a*b;
return(m);
}
Output
enter the value of x & y:
5
2
final value is:10
0 comments:
Post a Comment