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