| Electronic Components Datasheet Search |
|
CC78K4 Datasheet(PDF) 41 Page - NEC |
|
|
|||||||||||||||||||||||||||||
CC78K4 Datasheet(HTML) 41 Page - NEC |
|
41 / 523 page ![]() CHAPTER 2 CONSTRUCTS OF C LANGUAGE User’s Manual U15556EJ1V0UM 41 (1) Basic types A collection of basic data types is also referred to as “arithmetic types”. The arithmetic types consist of integral types and floating-point types. (a) Integral types Integral data types are subdivided into four types. Each of these types has a value represented by the binary numbers 0 and 1. • char type • Signed integral type • Unsigned integral type • Enumeration type (i) char type The char the type has a sufficient size to store any character in the basic execution character set. The value of the character to be stored in a char type object becomes positive. Data other than characters is handled as an unsigned integer. In this case, however, if an overflow occurs, the overflowed part will be ignored. (ii) Signed integral type The signed integral type is subdivided into the following four types. • signed char • short int • int • long int An object declared with the signed char type has an area of the same size as the char type without a qualifier. An int object without a qualifier has a size natural to the CPU architecture of the execution environment. A signed integral type data has its corresponding unsigned integral type data. Both share an area of the same size. The positive number of a signed integral type data is a partial collection of unsigned integral type data. (iii) Unsigned integral data The unsigned integral type is a data defined with the unsigned keyword. No overflow occurs in any computation involving unsigned integral type data. This is because if the result of a computation involving unsigned integral type data becomes a value which cannot be represented by an integral type, the value will be divided by the maximum number which can be represented by an unsigned integral type plus 1 and substituted with the remainder in the result of the division. (iv) Enumeration type Enumeration is a collection or list of named integer constants. An enumeration type consists of one or more sets of enumeration. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |