Why char *x not char x?
<p>I've a code </p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

void foo(char *name){ // ???
    cout &lt;&lt; "String: " &lt;&lt; name &lt;&lt; endl;
}

int main(){
    foo("Hello");
    return 0;
}
</code></pre>

<p>I don't know why I use "char name" won't work. Please help.</p>

<p>Cheers,</p>
