Quantcast
Channel: Uncategorized – Mike Higginbottom
Viewing all articles
Browse latest Browse all 25

Pointers To Structs

$
0
0

There’s just one little wrinkle you need to know about structs when it comes to pointers. If you have a pointer to a struct and you want to get access to one of its fields then there’s a shorthand: ptrToStruct->fieldName is the same as *(ptrToStruct).fieldName


Viewing all articles
Browse latest Browse all 25

Trending Articles