codeGK
Code it ALL
Declaring an Array in C++ - CodeGK

♦ Declaring an Array in C++

♣ Example1: Declaring an Array in C++

Declaring Array in C++ means that we are allocating the memory for the variables.
There are various ways of Declaring an Array in C++.
In this example, three empty arrays are declared, namely numbers, fruits and weights.
Example
Input:
Output: