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 before, we have hard-coded the size of the array. In modern C, it’s possible to declare arrays without knowing their size until run time.

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