m3ph1st0s's programming puzzle 2 (C++): "Call hard!" I am back with a brand new puzzle for C/C++ addicts. Following the feedback received on the 1st puzzle, this time I will try to make the requirements crystal clear and to provide a perfectly valid code.
Here is the problem.
Given the following code:
#include &lt;iostream&gt;

char message[6]=&quot;hello&quot;;

void print_hello_message() {
   std::cout &lt;&lt; message;
}

int main() {
   char* q = &amp;message[0];

   // insert your code here
}

You are required to insert two more lines where the comment specifies in order to make the program print &quot;hello&quot; and nothing more, with the following restrictions:

the first line will NOT call any function, including cout

the second line will contain AT MOST 5 letters (and as many other symbols as you want)

the first line may contain new variable declarations but may not initialize them

the symbols # and / will not be used at all.

no logical operators will be used
The shortest code wins!
In thinking about it some more, the problem states "insert two more lines where the comment specifies" not "statements". Taking that into consideration, here is another shorter answer (though it depends on how you define "the first line will NOT call any function, including cout"):

std::
cout&lt;&lt;q;


The first line qualifies which cout will be used, and the second line includes the actual operator that results in calling operator&lt;&lt; for the std::ostream &amp; const char* operands.