Search:

Type: Posts; User: Richardcavell

Search: Search took 0.01 seconds.

  1. ignoremax

    The test is i<max || ignoremax. My idea is that the loop goes a certain number of times, unless the user desires to have it loop infinitely. That's why i can overflow.

    Richard
  2. How to detect overflows within a for loop

    Hi, everyone. I have the following loop:



    unsigned int i;
    const unsigned int max = 10;
    bool ignoremax = // true or false
    for (i=1;i<max || ignoremax; i++)
    {
    printf ("This is loop number...
Results 1 to 2 of 2