fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void test_f (char* t0, char* t1)
  5. {
  6. char* t2 = "HELLO";
  7. const char* t3 = "HELLO";
  8. printf("0x%x, 0x%x, 0x%x, 0x%x\n", t0, t1, t2, t3);
  9. }
  10.  
  11. int main()
  12. {
  13. char* test_string = "HELLO";
  14. test_f(test_string, "HELLO");
  15. return EXIT_SUCCESS;
  16. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
0x8048540, 0x8048540, 0x8048540, 0x8048540