MathWorks interview question

p++ means?

Interview Answers

Anonymous

Mar 20, 2011

i think if its the array pointer itself, we cannto increment it and it will generate an error. if its a seperate pointer then it would be the next element.

2

Anonymous

Sep 20, 2015

if P points to an array in C, it is actually pointing to the first element in that array, and P holds the address of whatever it is pointing to, rather than the value its self. So P++ will give you the next element in the array.

2

Anonymous

Jul 4, 2011

simply p = p+1 :)

Anonymous

Mar 11, 2010

everybody know it.