Basic concepts of arrays using C++
1. Declaration and Initialization: - In C++, arrays are declared by specifying the data type followed by the array name and its size. - Example: `int numbers[5];` declares an integer array named "numbers" with a size of 5 elements. - Arrays can also be initialized during declaration: `int numbers[] = {1, 2, 3, 4, 5};` automatically determines the size based on the number of elements. 2. Accessing Elements: - Elements in a C++ array are accessed using an index, starting from 0. - Example: `int firstElement = numbers[0];` retrieves the first element of the "numbers" array. 3. Modifying Elements: - Elements in a C++ array can be modified by assigning a new value to a specific index. - Example: `numbers[2] = 10;` modifies the third element of the "numbers" array and assigns it the value 10. 4. Size of an Array: - The size of a C++ array can be obtained using the `sizeof` operator. - Example: `int size = sizeof(numbers) / sizeof(numbers[0]);` calculates the siz