fork download
  1. #include <stdio.h>
  2.  
  3. char* get_message() {
  4. char msg[] = "Hello, there!";
  5. printf("%xu\n", msg);
  6. return msg;
  7. }
  8.  
  9. int main() {
  10. char *p = get_message();
  11. printf("%u\n", p);
  12. printf("Message: %s\n", p);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
cb4d413au
0
Message: (null)