Calculations involving numbers are faster than those involving string.

Trường Phan

New member
Calculations involving numbers are faster than those involving string.
A. True
B. False
 
Answer: a
Explanation: Numbers can be compared in a single operation while string comparisons involve several byte by byte or character by character comparisons. As the strings become longer, the performance gets poor.
 

Tìm kiếm

Back
Top