Sobes.tech
Junior — Senior

Unlimited recursive function call

livecode

Task condition

What will happen if you run the following code snippet?

int count = 0;

void endlessRecursion(int n)
{
    count++;
    std::cout << n << " " << count << std::endl;
    endlessRecursion(n);
}

Describe the program's behavior and possible consequences of its execution.