Hello everyone,
I would like to know what is the defferent between int and unsigned int?
how can i use the right one of them?
thanks
boutnach-
This is the second time you have posted in the Articles Section. Please make sure you are posting in the
C/C++ Forum section next time.
Also, have a look at the
Posting Guidelines. Your question could have been answered by a Google search of int and then another of unsigned int, possibly with c++ in there, just to make sure.
However, the difference between the two is that an unsigned int does not use negative numbers, it only goes from zero to (I believe the norm is 2 bytes, or 6553, but this is probably dependent on compiler/architecture).
PS -
this is the first return on a Google search of "unsigned int". Google is your friend ;)