insert element in array c++ code example
Example 1: insert element in array c++
#include <iostream>
using namespace std
int main() {
int Array[] = {0}
for (int i = 1; i < 15; i++) {
cin >> Array[i];
};
return 0;
}
Example 2: insert elements in array in c++11
int main() {
int array[10];
for(int &i : array){
std::cin >> i;
}
}