¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
What happens if you input a negative number to an unsigned integer?
3 Respuestas
+ 3
absolute value
unsigned int x = -10;
cout << x;
output: 10
+ 1
it makes his absolute value
0
it will still give result in positive sign..