The formula for T’LENGTH is best described by which of the following?

Đăng Khánh

New member
The formula for T’LENGTH is best described by which of the following?
A. T’HIGH – T’LOW + 1
B. T’HIGH – T’LOW
C. T’HIGH + T’LOW – 1
D. T’HIGH + T’LOW
 
Answer: a
Explanation: T’HIGH will return the upper bound of the array and T’LOW will return the lower bound of the array. Also, the number of elements in an array is given by upper bound – lower bound + 1. Therefore, option a describes the formula best.
 

Tìm kiếm

Back
Top