Variable-Length Arrays
You will be introduced to variable-length arrays so that you don't have to specify array size at compile time.
In the array examples before, we have hard-coded the size of the array. In modern C (the C99 standard and above) it is possible to declare arrays without knowing until run-time their size.
Here is how to do it:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy