Btye shotr, int, three types of
I want to declare a test scores, known full mark is 120 minutes,
Using the above three types, but each type of bytes, choose which type should be preferred?
Q: in byte statement and in what is the difference between an int or a short statement? Personally, I think is not much difference, but if the quantity is more influential on the program is running?
CodePudding user response:
Byte a=128;Short b=128;
Int c=128;
CodePudding user response:
A byte byte 0-255Short - 32768-32767 two bytes
Int - 2.1 billion to + 2.1 billion four bytes
According to their own needs to go to can use can meet the demand and the type of bytes at least
CodePudding user response:
Hundreds of lines of code no hairCodePudding user response:
Large amount of data has influence to the program, but this doesn't affectCodePudding user response:
Generally not affect, had better use bigger, if the English level 6 test, out of a possible 750, what would you doIn theory, such as large data, high performance request, the width of the narrow data faster
CodePudding user response:
Code is what actually is the same, when the code under the amount of time to consider type, you can use a StopWatch to test time consumingCodePudding user response:
Three words you can write both of wrong, is also a talent