I was asked this on an interview for an entry level position and was interested as to why you need two pointers. It was a phone interview and he had me write down
char **a[5]
and asked me what this was?
He told me that it was a pointer to an array of 5 characters in order to produce a string of 5 character. I am just trying to understand why its char **a[5] and not char *a[5].
char (*a)[5];Side Note: Yourchar *a[5];is an array of five pointers-to-char, so that doesn't match his description either.