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. for (int i=10; i<20;i++)
  9. a[i]=i+1;
  10.  
  11. cout<<"Hello world!"<<endl;
  12. int c=10;
  13. cout<<c<<endl;
  14. for (int i=10; i<20;i++)
  15. cout<<a[i]<<endl;
  16. for (int i=10; i<20;i++)
  17. cout<<a[i]<<endl;
  18. return 0;
  19. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Array concept is so funny in C++
Hello world!
10
11
12
13
14
15
16
17
18
19
20
11
12
13
14
15
16
17
18
19
20