fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a[3]={10,20,30};
  6.  
  7. cout <<a[0];
  8. cout <<a[1] << endl;
  9. cout <<a[2] << endl;
  10. cout <<a[3] << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
1020
30
0