Accessing a pointer pointer ( c )

Asked

Viewed 94 times

1

Why go down a level on the pointer ** lista / * lista we should use parentheses : ( * lista ), I asked the question because I saw in some examples on the internet that they didn’t use and also in an old book that I took to read the other day. In C++ this ' access mode is used by increasing the positions in certain cases, right ?

  • 3

    Depending on the context, you need to show examples **lista and *(*lista) are the same thing.

1 answer

1

You should always take into account the value of the operators' precedence, as they have direct effect on what you want to get from the data being manipulated.
Parentheses takes precedence over the '->' operator, so it has effect on the data that will be submitted to the next operator, in the case '->'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.