fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a[4] = {1};
  6. for (int i = 0; i < sizeof(a)/sizeof(int); i++) cout << a[i] << " ";
  7. cout << endl;
  8. return 0;
  9. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
1 0 0 0