fork download
#include <iostream>
using namespace std;

void add(int x, int y, int* result)
{
   *result = x + y;
}

int main()
{
   int* result = new int;

   add(2,3, result);
   cout << *result << endl;
    return 0;
}
Success #stdin #stdout 0s 2984KB
stdin
Standard input is empty
stdout
5