fork(2) download
  1. #include <stdio.h>
  2.  
  3. union _Test
  4. {
  5. char all[30];
  6. struct
  7. {
  8. char name[6];
  9. char what[23];
  10. };
  11. };
  12.  
  13.  
  14. int main()
  15. {
  16. union _Test test;
  17. strncpy(test.name,"Mythos",6);
  18. strcpy(test.what," dobre piwo");
  19. printf("%s\n",test.name);
  20. printf("%s\n",test.what);
  21. printf("%s\n",test.all);
  22. return 0;
  23. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
Mythos dobre piwo
 dobre piwo
Mythos dobre piwo