Content deleted Content added
Undid revision 1031153521 by 2601:803:C600:B190:4016:9F85:504A:E0F9 (talk) |
No edit summary |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1:
{{Short description|Assignment of an initial value for variable}}
In [[computer programming]], '''initialization'''
Initialization is done either by statically embedding the value at compile time, or else by assignment at [[Run time (program lifecycle phase)|run time]]. A section of code that performs such initialization is generally known as "initialization code" and may include other, one-time-only, functions such as opening files; in [[object-oriented programming]], initialization code may be part of a ''[[Constructor (object-oriented programming)|constructor]]'' (class method) or an ''initializer'' (instance method). Setting a memory ___location to [[hexadecimal]] zeroes is also sometimes known as "clearing" and is often performed by an [[exclusive or]] instruction (both operands specifying the same variable), at [[machine code]] level, since it requires no additional memory access.
|