Random garbage, obviously. Let's note that global (ie not automatic) variables are automatically initialized by zero (=NULL)
A constant value.
Global variables can have any value, in C they are aumaticatically initialized to zero.
It is by-value, actually, not by-reference.
Because you can produce fast and efficient code. Function arguments are passed "by value", and so you can't change the original value of the argument, but if you use pointers, you can.
It's almost impossible to predict, but the value will be some data left by OS when it was previously used.
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.
A constant object is one that, once initialized, never changes value.
a pointer is a variable that contains memory location of another variable.the value u assign to the pointers are memory address of other variable.
The most important use of pointers comes when we pass value by reference to any function. You do not need to create a second memory location as in pass by value. You can mofify the original variable by using its address.
If they are instance variables the default initial value is 0. If they are method local variables, they are null and must be initialized to some value before they are used
Pointers hold reference to variable value which is already declared in memory. Say suppose $x = 2; // Here variable is assigned value 2 in memory Now $y = &$x; // This basically points to the variable which is already allocated the value The use of pointers could greatly reduce memory usage if used correctly.
There are two ways to pass parameters to a method. 1) Pass by value 2) Pass by reference.(i.e. pass by pointers). For here, I would say, whenever you required to change the properties/value of the parameter by the method you called you should the approach (2). ie. pass by pointers.