Arrow operator (->) usage in C

Posted by Mohit Deshpande on Stack Overflow See other posts from Stack Overflow or by Mohit Deshpande
Published on 2010-04-04T16:21:12Z Indexed on 2010/04/04 16:23 UTC
Read the original article Hit count: 316

Filed under:
|
|

I am currently learning C by reading a good beginner's book called "Teach Yourself C in 21 Days" (I have already learned Java and C# so I am moving at a much faster pace). I was reading the chapter on pointers and the -> (arrow) operator came up without explanation. I think that it is used to call members and functions (like the equivalent of the . (dot) operator, but for pointers instead of members). But I am not entirely sure. Could I please get an explanation and a code sample?

© Stack Overflow or respective owner

Related posts about pointers

Related posts about arrow