newline in echo unix

C++
echo $'hello\nworld'
Source

Also in C++: