1

So I have a while loop like this:

while ( (ret1 == funct1 () ) == 0 && (ret2 == funct2 () ) != 1)
{
    // do nothing
}

Will both functions be called at the same time? Like running two threads? Thanks.

xinthose
  • 3,213
  • 3
  • 40
  • 59
  • 2
    ***Will both functions be called at the same time? Like running two threads?*** No both functions will not be executed at the same time. funct1() will execute and if the result of `(ret1 == funct1 () ) == 0 ` is true funct2() will execute. – drescherjm Jan 30 '15 at 14:46
  • OK, then after conditon 2 returns true, it does nothing in the while loop, then rechecks the two conditions again (ret1, then ret2). I think I understand now. Thank you – xinthose Jan 30 '15 at 14:55

0 Answers0