/* In this program we illustrate how to perform operations like add, divide using pointers. */ #include using namespace std; int main(){ int x=2 ; int y=3 ; int * ptr_x; int * ptr_y; ptr_x= &x; ptr_y= &y; cout << " The two numbers are: " << x << " and " << y << endl; cout << "CONFIRM VIA POINTERS The two numbers are: " << *ptr_x << " and " << *ptr_y << endl; int sum = x*y ; cout << " Sum = " << sum << endl; cout << " CONFIRM VIA POINTERS: sum = " << *ptr_x + *ptr_y << endl; return 0; }