MathWorks Interview Question: p++ means?... | Glassdoor

Interview Question

Intern Interview Natick, MA

p++ means?


Interview Answer

4 Answers


everybody know it.

Interview Candidate on Mar 10, 2010

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.

swingingiant on Mar 19, 2011


p = p+1 :)

Anonymous on Jul 4, 2011

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.

Anonymous on Sep 19, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.