+ 4
Shiggy'sPhoneMyGames ,
you have started the *c++ intermediate* tutorial, but maybe you are missing the *introduction to c++*. in this tutorial the basics of arrays are described and also exercises are offered.
additional to the mentioned tutorial there are some tutorials from the community section:
https://www.sololearn.com/learn/CPlusPlus/1625/?ref=app
https://www.sololearn.com/learn/CPlusPlus/1629/?ref=app
https://www.sololearn.com/learn/CPlusPlus/1627/?ref=app
https://www.sololearn.com/learn/CPlusPlus/1642/?ref=app
https://www.sololearn.com/learn/CPlusPlus/1628/?ref=app
+ 2
C++ have two types of array.
1. Primitive array int arr[constexpr n]
2. Container array std:: array<T, size_t n>
Array are among the data types in c++, that describes a certain series of sequential address in memory. The amount of these addresses must be known at compile time
The primitive array can be created in modern c++ using the braced initizializer
int ages[] { 1, 2, 3 };
int ages[20]{ };
Container array have constructors and several ways to create them.