fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. using namespace std;
  6. for( int i = 0; i < 5; ++i )
  7. {
  8. char buffer[5];
  9. if(i == 0)
  10. {
  11. buffer[0] = 'y';
  12. buffer[1] = '\0';
  13. }
  14. cout << buffer[0] << endl;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
y
y
y
y
y