foo->bar
is equivalent to (*foo).bar
, i.e. it gets the member called bar
from the struct that foo
points to.
More Related Contents:
- How do you pass a function as a parameter in C?
- In C, what is the correct syntax for declaring pointers?
- What is pointer to string in C?
- What is the output of the following code in C? [closed]
- Incorrect result in c code
- whats the difference between dynamic memory allocation and normal memory allocation?
- pointer to string concept in c [closed]
- Pointer manipulation inside function
- Changing address contained by pointer using function
- “Pointer from integer/integer from pointer without a cast” issues
- Are there any platforms where pointers to different types have different sizes?
- Why are hexadecimal numbers prefixed with 0x?
- How to pass a 2D array by pointer in C?
- Pointer to pointer of structs indexing out of bounds(?) when I try to index anything other than zero
- Addresses of two char pointers to different string literals are same
- Difference between char* and const char*?
- Pointers – Difference between Array and Pointer
- Are “malloc(sizeof(struct a *))” and “malloc(sizeof(struct a))” the same?
- C – SizeOf Pointers
- Swapping pointers in C (char, int)
- What is double star (eg. NSError **)?
- Where in memory are string literals ? stack / heap? [duplicate]
- How to include a dynamic array INSIDE a struct in C?
- How can I return a character array from a function in C?
- Use of the : operator in C [duplicate]
- C difference between *[] and **
- How to check if a pointer is freed already in C?
- Casting void pointers
- Cast T[][] to T*
- C fundamentals: double variable not equal to double expression?