fork(1) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. static struct{
  5. int a;
  6. char b[100];
  7. } name;
  8.  
  9. int main(void) {
  10. name.a = 5;
  11. strcpy(name.b, "test");
  12.  
  13. printf("%d: %s\n", name.a, name.b);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
5: test