Typedef
Reserved keyword in the C and C++ 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.
Nº Q2629778 ★
Common · Knowledge
Typedef
Reserved keyword in the C and C++ 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.
From Wikipedia
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.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
Printf
Function to print a string according to a format string, introduced in the C programming language but supported by many languages
Nº Q838016 ★★
Not listed
-
D
Dependent type
Data type whose definition depends on a value
Nº Q997433 ★★
Not listed
-
C
Concepts (C++)
Compile-time predicate on C++ template parameters
Nº Q5158429 ★
Not listed
-
V
Void type
In programming languages, a keyword indicating the absence of data
Nº Q513000 ★
Not listed
-
T
Template metaprogramming
Programming paradigm that uses compile-time metaprogramming
Nº Q773763 ★
Not listed
-
F
Flexible array member
C language feature in which a struct may contain as its last member an array with no specified size
Nº Q25312739 ★
Not listed