Everything about Typedef
Keyword in programming languages
typedef is a reserved keyword in the programming languages C, C++, and Objective-C. It is used to create an additional name (alias) for another data type, but does not create a new type, except in the obscure case of a qualified typedef of an array type where the typedef qualifiers are transferred to the array element type. As such, it is often used to simplify the syntax of declaring complex data structures consisting of struct and union types, although it is also commonly used to provide specific descriptive type names for integer data types of varying sizes. Wikipedia →
đź§ Start here: a 6-step reading path
- Read the overview: TypedefA 5-minute orientation
- Pick up a classic book: Encyclopedia of graphics file formatsThe most-reprinted book on the subject
- Go sideways: C++11A closely related topic
- Go sideways: Compatibility of C and C++A closely related topic
đź“– Definitions
Noun A statement that declares a name for a data type.
Noun A name that has been declared by such a statement.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
- No matching papers found.
📚 Books worth reading
Encyclopedia of graphics file formatsJames D. Murray · 1994
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
đź”— Related topics
- C++11 C++11 is a version of a joint technical standard, ISO/IEC 14882, by the International Organization for Standardization (ISO) and International Electrotechnical…
- Compatibility of C and C++ The C and C++ programming languages are closely related but have many significant differences. C++ began as a fork of an early, pre-standardized C, called…
- C++ syntax The syntax of C++ is the set of rules defining how a C++ program is written and compiled. C++ syntax is largely inherited from the syntax of its ancestor…
- C syntax C syntax is the form that text must have in order to be C programming language code. The language syntax rules are designed to allow for code that is terse…
- Const In some programming languages, const is a type qualifier (a keyword applied to a data type) that indicates that the data is read-only. While this can be…
- C data types In the C programming language, data types constitute the semantics and characteristics of storage of data elements. They are expressed in the language…
- Typename typename is a keyword in the C++ programming language used when writing templates. It is used for specifying that a dependent name in a template definition…
- C++ classes A class in C++ is a user-defined type or data structure declared with any of the keywords class, struct or union (the first two are collectively referred…