fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6. // your code goes here
  7. int a[1];
  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=10; i<20;i++)
  13. cout<<a[i]<<endl;
  14. return 0;
  15. }
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