fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char **argv) {
  4. char str1[] = "Hello";
  5. char *str2 = "Goodbye";
  6.  
  7. printf("%p %p %s\n", (void*)&str1, (void*)str1, str1);
  8. printf("%p %p %s\n", (void*)&str2, (void*)str2, str2);
  9. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
0x7ffe95676bf0 0x7ffe95676bf0 Hello
0x7ffe95676be8 0x2b4dca5eb7d4 Goodbye