Pergunta de entrevista da empresa MathWorks

What are the precautionary steps taken while using pointers

Resposta da entrevista

Sigiloso

24 de out. de 2011

pointer related bugs cannot be revoked during compile time. They will not halt the program execution but they can affect the behavior of program execution. Be careful when when is doing pointers arithmetic. For example void someLLfunction (node * head) { //use this value of head and it wont change actual head memory address } void someLLfunction (node ** head) { //by using thus one can actually change the memory content for this address (i.e. change start of this particular LL) } I am sure one can find many many points if we Google this topic

3