Electronic Components Datasheet Search
  English  ▼

X  

78IV Datasheet(PDF) 62 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) 62 Page - NEC

Back Button 78IV Datasheet HTML 58Page - NEC 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 62 / 523 page
background image
CHAPTER 3
DECLARATION OF TYPES AND STORAGE CLASSES
User’s Manual U15556EJ1V0UM
62
3.7 Initialization
Initialization refers to setting a value in an object beforehand. An initializer carries out the initialization of an
object.
Initialization is performed as follows.
object = {initializer list}
An initializer list must contain initializers for the number of objects to be initialized.
All expressions in initializers or an initializer list for objects that have static storage duration and objects that have
an aggregate type or a union type must be specified with constant expressions.
Identifiers that declare block scope but have external or internal linkage cannot be initialized.
(1) Initialization of objects which have a static storage duration
If no attempt is made to initialize an arithmetic type object that has static storage duration, the value of the object
will be implicitly initialized to 0.
Likewise, a pointer type object that has a static storage duration will be initialized to a null pointer constant.
Example
unsigned int
gval1;
/* initialized by 0 */
static int gval2;
/* initialized by 0 */
void func (void) {
static char
aval;
/* initialized by 0 */
}
(2) Initialization of objects that have an automatic storage duration
The value of an object that has automatic storage duration becomes undefined and will not be guaranteed if it is
not initialized.
Example
void func(void){
char
aval;
/*undefined at this point */
:
aval = 1;
/* initialized to 1 */
}
(3) Initialization of character arrays
A character array can be initialized by a char string literal (char string enclosed with “ ”). Likewise, a character
string in which a series of char string literals are contained initializes the individual members or elements of an
array.
In the following example, the array objects “s” and “t” with no type qualifier are defined and the elements of each
array will be initialized by a char string literal.
char s[ ] = “abc”,
t[3] = “abc” ;



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