Hey guys, I just need some help thinking through a line of code:
I know that you'd need to cast (char*) onto malloc() to allocate memory for chars - but why is a 2-dimensional pointer necessary? The values (TOTAL) multiplying the malloc() value just creates a larger value - not a 2-dimensional one, right?words = (char **)malloc(sizeof(char *)*TOTAL*TOTAL);