+ 6
What is the difference between int and signed,unsigned,long signed?
4 Answers
+ 4
The difference between int and long are the number of bytes. While a long holds higher numbers than an int does.
int and signed are the same.
Signed and unsigned are different in that unsigned cant be negative which holds a higher range of positive numbers.
You are capable of saying unsigned long with out int on the end. As unsigned long is implied as an integer.
Here is a site to help understand the differences maybe in more detail. http://www.cplusplus.com/doc/tutorial/variables/
+ 7
Note: the size of int does not change when using un/signed just the range of numbers it stores.
+ 7
Thank you all
+ 3
unsigned int can't be negative (0..65535), and signed int can (-32768..+32768)