Variable Length Arrays

Learn how to create arrays of variable length without specifying the array size at compile time.

We'll cover the following

In the array examples earlier, we have hard-coded the size of the array. In modern C, it’s possible to declare arrays without knowing their size until runtime.

Here is how to do it:

Create a free account to access the full course.

Continue your learning journey with a 14-day free trial.

By signing up, you agree to Educative's Terms of Service and Privacy Policy