I read in an introductory C text that it's "generally hazardous" to
introduce an unitialized pointer:
so it's better to do this:
Code:
int *pointer = NULL;
Question 1: Why is it generally hazardous? What do I risk leaving it
uninitialized?
Question 2: If I get a segfault when I initialize the pointer, what's
the most likely cause? For example, failure to include a header?
Thanks,
Joel