Let us say we have a array of pointers:
char *ptr[30];
Now this works fine, and doesn\'t seems to do anything unexpected! I can input names easi
If you use what is in your example, you just owerwrite other locations what come after your ptr array. Most compilers should actually give at least a warning. Your program would crash on most systems, you were just very lucky.
ptr