
Problem
Take two integer inputs from user. Create Sum function which should receive two integers using pointers. Calculate the sum and display the result in main function.
Code
#include "stdafx.h"
#include <iostream>
#include<conio.h>
using namespace std;
int sum (int *, int *);
int main()
{
int a,b,c;
cout << "Enter 1st number: ";
cin >> a;
cout<<"enter 2nd number: ";
cin >> b;
c = sum (&a,&b);
...