fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. char arr[10];
  8. memset(arr, 0x0, 10);
  9. printf("string:%s", arr);
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
string: