Answer:
Step-by-step explanation:
#include <iostream>
using namespace std;
//function declaration
void triple(int *a,int *b);
//function implementation which will triple the numbers
void triple(int *a,int *b)
{
//Tripling the numbers
*a=(*a)*(*a)*(*a);
*b=(*b)*(*b)*(*b);
}
int main()
{
//Declaring varibles
int a,*b,c;
//Getting the First Number entered by the user
cout<<"Enter First number :";
cin>>a;
//getting the second number entered by the user
cout<<"Enter Second number :";
cin>>c;
//Assigning the address of variable 'c' to the pointer variable 'b'
b=&c;
//calling the function by passing the arguments
triple(&a,b);
//Displaying the output after tripling the numbers.
cout<<"After Tripling the numbers are "<<a<<" and "<<*b<<endl;
return 0;
}
_____________________________________________
Output:
(image attached)