void add(int x, int y, int *result){
*result = x + y;
}
add(x,y,&result);
printf(대충 x+y=result);
이런식이지 않을까

- dc official Cpp