Review Note
Last Update: 11/04/2024 04:32 PM
Current Deck: ethanki::SPCA::C
Published
Fields:
Front
C: What is a struct in C? How do you refer to it’s content?
Back
stuct typename { type name1;
…
type namex; }; //typename = "tag"
- contains a set of heterogene fields
- use "tag.name" to refer to fields in a struct
- use "tag->name" to refer to fields through a pointer to a struct
p->x
is like(*p).x
Tags:
Suggested Changes:
Deck Changes (Suggestion to move the Note to the following Deck):
Field Changes:
Tag Changes: