-12

I was wondering if there is a way to make an infinity loop the first function will call the second and the second will call the first and so on. Please make a code in C++. Thanks already.

1 Answers1

3
void foo();
void bar();

void foo(){
    bar();        
    }

void bar(){
    foo();
    }


int main() {
    foo();
    return 1;
    }

Not sure what you're trying to achieve here...? except.. StackOverflow.. ohhh!

AlexG
  • 1,091
  • 7
  • 15