C++ Program to accept two numbers and print the sum of given two numbers by using pointers
# include
#include
#include
using namespace std;
int main( )
{
int a, b,c;
a=10;
b=20;
c=*(&a)+*(&b);
cout<<c;
return 0;
}
The Way to Programming
The Way to Programming
C++ Program to accept two numbers and print the sum of given two numbers by using pointers
# include
#include
#include
using namespace std;
int main( )
{
int a, b,c;
a=10;
b=20;
c=*(&a)+*(&b);
cout<<c;
return 0;
}
Sign in to your account