What is the flaw in this C++ code?
<p>(I am a beginner to C++. But I am familiar with some other prog. languages, specially with Java.)</p>

<p>Can anyone please help me to find the flaw in this C++ code?</p>

<pre><code>string &amp; getFullName(string name, bool male){
    string fullName = name;
    if (male) {
        fullName = string(” Mr. ”) + fullName;
        return fullName;
    }
}
</code></pre>
