On 10/10/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > > And BTW ... you are aware of the fact that if you do > > int *b; > *b = 5; > > you cause the program to crash, right? > You did not start by assigning a variable to a reference to > something, you assigned to the thing already referenced by a > variable. And unlike Perl, C doesn't "autovivify" the pointer. It > doesn't notice that the b doesn't point to anything yet and doesn't > initialize the pointer. And will try to access the address 0.
P.S. Other than the fact that your grammar can you a bit of fixing, your email did help me as far as teaching me that Perl does something called "autovivifying" with pointers. Sentences, generally speaking, should not begin with the word "and". Either make the two sentences into one, or drop the "and".