fork download
  1. #include <iostream>
  2. #include <memory.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. char buff[6];
  7. int c = 25;
  8. void *b = (void*)c;
  9. memcpy(buff + 5, b, 1);
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty