fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6. int a[1];
  7. // your code goes here
  8. cout<<"Array concept is so funny in C++"<<endl;
  9. for (int i=10; i<20;i++)
  10. a[i]=i+1;
  11.  
  12. for (int i=0; i<20;i++)
  13. cout<<a[i]<<endl;
  14. cout<<a[6];
  15. cout<<a[6];cout<<a[6];cout<<a[6];cout<<a[6];cout<<a[6];cout<<a[7];
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Array concept is so funny in C++
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
20
0000000