What is a Flexible Array, exactly?
I can’t find much on it.
What is a Flexible Array, exactly? I can’t find much on it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A flexible array is an array whose index bounds are determined at run time and may change during the lifetime of the array.
Java arrays are flexible. For example, in Java you can assign one array to another:
At first, a1 has index range 0–3, and a2 has index range 0–2.
After the assignment a1 = a2, a1 points to an array with index range 0–2, so the index range of a1 varied during the lifetime of a1.