Examveda

How do you access the last element of an array named 'values' in C#?

A. values[length(values)];

B. values[values.Length - 1];

C. Last(values);

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Arrays and Strings in C Sharp