fork download
  1. #include <iostream>
  2. #include "string.h"
  3. using namespace std;
  4.  
  5. int main() {
  6. long array[10];
  7. memset(&array[0], 1, sizeof(long)*10);
  8. cout << array[0] << ", " << array[1] << ", " << array[2];
  9. return 0;
  10. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
72340172838076673, 72340172838076673, 72340172838076673