If we want to store the value 127 in a variable, which data type should be appropriate and
why?
pls don't spam
Answers
Answered by
1
To store 127 in a variable, byte data type will be appropriate.
Byte stores values from -128 to 127 and takes 1 byte of memory, if we use a bigger data type, it will use more memory for no reason, which will lead to the slow execution of the program.
Similar questions