fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. char a[4] = {'e','e','e','e'};
  5. for(int i = 0; i < 4; i++) {
  6. a[i] = 'a';
  7. std::cout << a[i] << std::endl;
  8. }
  9. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
a
a
a
a