0 Replies - 75 Views - Last Post: 29 May 2009 - 04:20 AM

#1 Zerobu   User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Parallel Arrays

Posted 29 May 2009 - 04:20 AM

Description: This snippet is a function that tells if the index of two arrays of the same size are equal.
bool ArraysEqual( int A[], int B[], int size )
{
    bool equal= true;

    for (int i= 0; i < size; i++)
    {
        if (A[i] != B[i])
            equal= false;
    }

    return equal;
}

Is This A Good Question/Topic? 0
  • +

Page 1 of 1