Question d’entretien chez Mobileye

How to make sure 2 unsigned ints addition doesn't cause overflow?

Réponse à la question d'entretien

Utilisateur anonyme

9 oct. 2019

1. turn off MSB (save aside), add and than check 2. if(a < MAX_UINT - b) add(a, b);