Ad
Code
Diff
  • #define _GNU_SOURCE 1
    #include <string.h>
    
    
    char *Hi(){
    
        char * hello=malloc(30);
    
        strcpy(hello,"Hello World.");
    
    return hello;
    }
    • #define _GNU_SOURCE 1
    • #include <string.h>
    • char *Hi() {
    • char *hello = "Hello World.";
    • return hello;
    • char *Hi(){
    • char * hello=malloc(30);
    • strcpy(hello,"Hello World.");
    • return hello;
    • }