This time we converted "Hello World" in a modular program. One module contains the message, and one sends the greeting.

Well, that's the way it's supposed to work, something funny is happening.

hello_sub.c

// Message to say hello
const char[] message = "Hello World!\n";	

hello_main.c

#include <stdio.h>
extern const char* const message;
int main()
{
    printf(message);
    return(0);
}

Source code for the string
Source code for main

Hint 1: C is not typesafe.

Next Hint
Answer

Main gallery