/ Published in: C++

Initializing an array in C++
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <iostream> using namespace std; main() { int n[10]; for (int i = 0; i < 10; i++) { n[i] = 1; cout<<n[i]<<endl; } }
Comments
