Null terminated array in C++
<p>I want to create NULL terminated array in the constructor.    </p>

<pre><code>class Test
{
    char name [30];
    char Address[100]
};

Test::Test()
{
    memset(name ,0, 30);
    memset(Address, 0, 100);
}
</code></pre>

<p>Is this the correct way to initialize an array to NULL?</p>

<p>Is there any good alternative to this?</p>
