Hi
I have PIC18F45K80. I am using MPLABX 5.40 and XC8 2.30.
int and short are two different keywords in c language I understand int data type very well, whenever I have to store integer value I use int data type in my code but i don't know where short keyword should be use ?
unsigned int = 60000; // statement 1
unsigned short int = 60000; // statement 2
similarity in two statement :
size same 16 bits
range same ( 0 to 65535)
I don't understand any difference instead of keywords name.
I have PIC18F45K80. I am using MPLABX 5.40 and XC8 2.30.
int and short are two different keywords in c language I understand int data type very well, whenever I have to store integer value I use int data type in my code but i don't know where short keyword should be use ?
unsigned int = 60000; // statement 1
unsigned short int = 60000; // statement 2
similarity in two statement :
size same 16 bits
range same ( 0 to 65535)
I don't understand any difference instead of keywords name.