+ 2
Diffrence between signed and unsigned integer?
signed int a; unsigned int a;
3 Antworten
+ 5
[Dipendra Marasini]
Signed: A signed integer can hold both negative and positive numbers.
Unsigned: An unsigned integer can hold only positive values
Read this lesson for more :
https://www.sololearn.com/learn/CPlusPlus/1622/?ref=app
+ 3
For numbers that are always positive, you can use unsigned ints
0
But i asked for real life practice of signed and unsigned int by default there is no need of their use in programming for eg :- int a; can take both positive and negative numbers