iv is pointing to the actual IntVec struct in memory. If I do *iv = 0 won't that just change the data in the struct, rather than the pointer?
And If I do it after I delete it, aren't I modifing a struct which has been deleted, and could be being used by other variables?
Doing (*intVec) = 0 makes sense Ekted, thanks.
Mr Ekted - Thu Jul 29, 2004 8:21 pm
Post subject:
Yes, you are right Bak. I take back what I said. I spoke too quickly. "*iv = 0;" is in fact an error, and will not even compile.
Tommyhawk - Fri Jul 30, 2004 12:30 am
Post subject:
Meh mb. I had the arrows on the diagram in my head in slightly different places