I want to create NULL terminated array in the constructor.
class Test
{
char name [30];
char Address[100]
};
Test::Test()
{
memset(name ,0, 30);
memset(Address, 0, 100);
}
Is this the correct way to initialize an array to NULL?
Is there any good alternative to this?