Answers for "insert element in array c++"

C++
0

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;
}
Posted by: Guest on February-23-2021
0

insert elements in array in c++11

int main() {
    int array[10];
    for(int &i : array){
        std::cin >> i;
    }
}
Posted by: Guest on May-15-2020

Browse Popular Code Answers by Language