...

/

Initializing Arrays

Initializing Arrays

This lesson covers initializing static, dynamic and implicitly typed arrays.

Initializing Static Arrays

An array can be declared and filled with the default value using square bracket ([]) initialization syntax. For example, creating and initializing an array of 5 integers:

Access this course and 1400+ top-rated courses and projects.