I'm new to c++ and watching tutorials and I want to know what does return answer do in this code do exactly? The code runs normals even if i skip it. Please can someone explain what return answer does here, please explain it like you would to a child.
#include <iostream>
using namespace std;
int addnumbers(int x, int y){
int answer = x + y;
return answer; // what does return answer do?
}