#include <iostream>
using namespace std;

void print_message( char* msg );

char* get_message()
{
    // This is how C-strings, introduced by string literals,
    // are allocated:
    // static char dummy[] = "HELLO";

    // Therefore, the following code is safe:
    return "HELLO";
}

int main()
{
    cout << get_message();
    return 0;
}

void print_message( char* msg )
{
    cout << msg;
}