A simple program to ask the user to give two numbers and then the program will compute the difference of two numbers using pointers using C++ programming languages.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGgThank you very much for your support.

Program Listing

#include <iostream>

int main() {

   int *p1, *p2;
   int val_one=0, val_two=0, subtract=0;

   std::cout << "\n\n";
   std::cout << "\tSubtract Two Numbers Using Pointers in C++";
   std::cout << "\n\n";
   std::cout <<"\tGive Two Numbers : ";
   std::cin >> val_one >> val_two;
   p1 = &val_one;
   p2 = &val_two;

   subtract = *p1 - *p2;

   std::cout <<"\n";
   std::cout <<"\tThe difference between " << val_one 
        << " and " << val_two << " is " << subtract
        << ".";

   std::cout << "\n\n";
   std::cout << "\tEnd of Program";
   return 0;