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