In C, structures are uninitialized by default. To initialize a structure you will typically zero the memory allocated to the structure and then set specific members to specific values. If all members are non-zero, you can simply set those members rather than zero the memory first.
In C++, structures are initialized via inline initializes and/or through the class constructor.
no
A constant value.
Java by default initializes it to the default value for that primitive type. Thus an int will be initialized to 0(zero), a Boolean will be initialized to false.
Finalizes variables so they can't be changed after being initialized.
An example might help int myarray [] = {2,0,1,3,1,1,2,9};
Not initialized variable: int myInt; Initialized variable: int myInt = 10;
Yes.
no
yes
PHP static can only be initialized using a literal or constant. You can not use an expression. You can initialize it to an integer but you may not to another variable.
Random garbage, obviously. Let's note that global (ie not automatic) variables are automatically initialized by zero (=NULL)
The correct past tense of "initial" is "initialed."
global and static
A constant value.
Java by default initializes it to the default value for that primitive type. Thus an int will be initialized to 0(zero), a Boolean will be initialized to false.
Because, that is how all Java classes work. When a class is initialized/created all the classes it extends from (its super classes) need to be initialized as well.
Finalizes variables so they can't be changed after being initialized.