I'm still pretty new to C programming and I was wondering if someone could tell me why the following code results in a seg fault:
Any advice/input is greatly appreciated, thanks!Code:typedef struct mob mob_t; struct mob { char *names[10 * sizeof(char)]; }; main() { mob_t *mob; mob->names[0] = "Steve the Monster"; }