Pregunta de entrevista de Matrox Electronic Systems

What purpose does a function serve in C++?