fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int n;
  5. int a[] = {0,9,7,4};
  6.  
  7. int main()
  8. {
  9. cout << a[0] <<'\n';
  10. cout << a[2] <<'\n';
  11.  
  12. a[2] += 3; /// đối xử với a[2] như 1 biến bình thường
  13. a[1] / 3; /// không có tác dụng
  14. for(int i = 0;i < 4;i++)
  15. {
  16. cout << a[i] <<' ';
  17. }
  18.  
  19. }
  20.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
0
7
0 9 10 4