+ 2
A struct is a custom type, variables are not a type, variables are instance of a certain type, given a friendly name (identifier), just so we can refer to them by name rather than their memory address (just an illustration). So no, `typedef` cannot be used with variables, `typedef` is used to create type aliases.
5th Mar 2022, 11:35 AM
Ipang