fork(7) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6. int array[3] = { 0 };
  7. memcpy(array, (int []){ 0x01, 0x02, 0x03 }, sizeof array);
  8. for (size_t i = 0; i < sizeof(array) / sizeof(array[0]); i++) {
  9. printf("%02x ", array[i]);
  10. }
  11.  
  12. printf("\n");
  13. return 0;
  14. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
01 02 03