How to use sprintf with char pointers in C
<p>What is wrong with the function. How come nothing gets printed out?</p>

<pre><code>char * CombineStr(char * str1, char * str2)
{
    char strOut[256];
    sprintf(strOut, “%s%s”, str1, str2);
    return strOut;
}
</code></pre>