Electronic Components Datasheet Search
  English  ▼

X  

78IV Datasheet(PDF) 63 Page - NEC

Part # 78IV
Description  CC78K4 Ver.2.30 or Later, C Compiler Language
PDF  523 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NEC [NEC]
Direct Link  http://www.nec.com/
Logo NEC - NEC

78IV Datasheet(HTML) 63 Page - NEC

Back Button 78IV Datasheet HTML 59Page - NEC 78IV Datasheet HTML 60Page - NEC 78IV Datasheet HTML 61Page - NEC 78IV Datasheet HTML 62Page - NEC 78IV Datasheet HTML 63Page - NEC 78IV Datasheet HTML 64Page - NEC 78IV Datasheet HTML 65Page - NEC 78IV Datasheet HTML 66Page - NEC 78IV Datasheet HTML 67Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 63 / 523 page
background image
CHAPTER 3 DECLARATION OF TYPES AND STORAGE CLASSES
User’s Manual U15556EJ1V0UM
63
The next example is the same as the above example of array initialization.
Char s[ ] = {‘a’, ‘b’, ‘c’, ‘\0’},
t[ ] = { ‘a’, ‘b’, ‘c’};
The next example defines p as “pointer to char” type and the member is initialized by a character string literal so
that the length indicates 4 “char array” type objects.
char *p = “abc” ;
(4) Initialization of aggregate or union type objects
•
Aggregate type
An aggregate type object is initialized by a list of initializers described in ascending order of subscripts or
members. The initializer list to be specified must be enclosed in braces.
If the number of initializers in the list is less than the number of aggregate members, the members not
covered by the initializers will be implicitly initialized just the same as an object that has static storage
duration.
With an array of an unknown size, the number of its elements is governed by the number of initializers and the
array will no longer become an incomplete type.
•
Union type
A union type object is initialized by an initializer for the first member of the union that is enclosed in braces.
In the following example, the array “x” with an unknown size will change to a one-dimensional array that has
three elements as a result of its initialization.
int x[ ] = {1, 3, 5} ;
The next example shows a complete definition which has initializers enclosed in braces. “{1, 3, 5}” initializes
“y [0] [0]”, “y [0] [1]”, and “y [0] [2]” in the 1st line of the array object “y[0]”. Likewise, in the second line, the
elements of the array objects “y [1]” and “y [2]” are initialized. The initial value of “y[3]” is 0 since it is not
specified.
char y [4] [3] = {
{1, 3, 5},
{2, 4, 6},
{3, 5, 7},
};
The next example produces the same result as the above example.
char z[4][3] = {
1, 3, 5, 2, 4, 6, 3, 5, 7
};



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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