Input
Output
#include <iostream> using namespace std; void sum(int *a, int *b) { int sum; sum=*a+*b; cout << "Sum of two numbers value is :" << sum << endl; } int main(){ int a = 100,b=12,result; sum(&a, &b); /* calling a function to get sum value */ return 0; }