1. char *names[5]={"Web","Security","Software","Hello","Language"};
2. char names[5][30]={"Web","Security","Software","Hello","Language"};
what is the difference between these two ?
One I know is that (1.) first one can have desired length of string while (2.) second one can have string 29 characters with '\0'
But I am confused that what's the difference when they are passed to function and how they are passed ?
Please elaborate I am new to C++ ....