Tuesday, January 6, 2009

Gyan! - Why to use local variable when dealing with pointers

It is always a good practice to transfer the contents of the resolved pointer into a local variable. This avoids repeated access to the memory. Think in terms of assembly.

--
At a certain point there is no difference between Magic and Science.
-Bhimsen Joshi

No comments: