0

I have a possibly simple question Is it possible to have to that void1 and void2 interact with eachother? Here's what i mean :

void void1(){
   void2();
}
void void2(){
   void1();
}

I mainly asked this because i have a school project and i'm kind of in a rush. Thank you

BakonBot
  • 55
  • 2
  • 8

1 Answers1

0

In order to call one function from the other, you have to provide a declaration of the function before you try to use it.

void void2();

void void1(){
   void2();
}
void void2(){
   void1();
}
Mark Ransom
  • 299,747
  • 42
  • 398
  • 622