I am having trouble to understanding this combination to store variable. I do not understand which one should be use for specific reason
let's suppose if I want to store integer number then I have 11 ways to store integer value'
Code:int N;
Code:signed int N;
Code:unsigned int N;
Code:short int N;
Code:long int N;
Code:short int N;
Code:short signed int N;
Code:short unsigned int N;
Code:long int N;
Code:long signed int N;
I know the difference between signed and unsigned int. if I want to store positive number I use unsigned int and if I don't know number is positive or negative then i use only int.Code:long unsigned int N;
I think each statement has its own important. I do not understand what to use and when to use it ?