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

Interview Question

Intern Interview Natick, MA

p++ means?

Answer

Interview Answer

4 Answers

0

everybody know it.

Interview Candidate on Mar 10, 2010
2

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
0

simply

p = p+1 :)

Anonymous on Jul 4, 2011
1

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.