But why then does he enclose it inside a struct, when all that the struct contains is just a union? |
The keyword struct starts the structure definition, and a tag gives the unique name to the structure. |
The typedef keyword may be used to define a word to refer to the structure rather than specifying the struct keyword with the name of the structure. |
A variable of the user defined type struct element may now be declared as follows. |
This creates a static variable of the type struct file system type called pcihpfs fs type and initializes some of the structure's fields. |
Many C++ programmers ask themselves if they should use a struct or a class when designing their code. |