While (condition-1 && condition-2) {
// Do something
}
Assume that if condition-1 fails, condition-2 can potentially cause a segmentation fault. So, does the loop exit as soon as condition-1 fails before even checking for condition-2 or does it check it anyway, making this practice unsafe?
Ex: Condition-1 may be 'Node* temp != 0' and condition-2 can be 'temp->next != int i'