I'm reading a C ++ code, the code has a line like this:
for(;;) 
{
    if(~theArray[i] & anotherCondition)
    {
        DoSomeThing();
    }
}
For some values i code goes back to the beginning of the loop, what exactly does this expression ~ on array, do?
Can anybody help?
 
     
     
     
    