New course! Every coder should learn Generative AI!
Try a free lesson0
What happens if you input a negative number to an unsigned integer?
3 Answers
+ 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..