English
Language : 

CC78K4 Datasheet, PDF (45/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 2 CONSTRUCTS OF C LANGUAGE
(3) Incomplete types
The incomplete data types include the following four types.
• Arrays with indefinite object size
• Structures
• Unions
• void type
(4) Derived types
The derived types are divided into the following three categories.
• Array type
• Structure type
• Union type
• Function type
• Pointer type
(a) Aggregate type
The aggregate type is subdivided into two types.
Array type and Structure type. An aggregate type data is a collection of member objects to be taken
successively.
i) Array type
The array type continuously allocates a collection of member objects called element types. Member
objects all have an area of the same size. The array type specifies the number of element types and the
elements of the array. It cannot create an incomplete type array.
ii) Structure type
The structure type continuously allocates member objects each differing in size. Each member object
can be specified by name.
(b) Union type
The union type is a collection of member objects that overlap each other in memory. These member objects
differ in size and name and can be specified individually.
(c) Function type
The function type represents a function that has a specified return value. Function type data specifies the
type of return value, the number of parameters, and the type of parameter. If the type of return value is T,
the function is referred to as a function that returns T.
(d) Pointer type
The pointer type is created from a function type object type called a referenced type as well as from an
incomplete type. The pointer type represents an object. The value indicated by the object is used to
reference the entity of a referenced type.
A pointer type data created from the referenced type T is called a pointer to T.
(5) Scalar types
The basic types (arithmetic types) and pointer type are collectively called the scalar types. The scalar types
include the following data types.
• char type
• Signed integral type
• Unsigned integral type
• Enumeration type
• Floating point type
• Pointer type
User’s Manual U15556EJ1V0UM
45