Hi all, just two quick questions to tax your brains with! I am preparing for a job interview and would like to get these two things clear!
Firstly, how can one find the upper limit of an array?
Second, how can one change that upper limit?
Thank you for your time.
majestic0110
187
Nearly a Posting Virtuoso
Recommended Answers
Jump to Post>how can one find the upper limit of an array?
Assuming the upper limit in terms of capacity, you can use the Length property. my_array.Length gives you the number of items the array can hold, and my_array.Length - 1 gives you the last valid index.>ow can one change …
All 6 Replies
majestic0110
187
Nearly a Posting Virtuoso
Narue
5,707
Bad Cop
Team Colleague
majestic0110
commented:
Thank you, good explanation
+1
majestic0110
187
Nearly a Posting Virtuoso
shuban
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
majestic0110
187
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.