answersLogoWhite

0

Random garbage, obviously. Let's note that global (ie not automatic) variables are automatically initialized by zero (=NULL)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What value cannot be changed once it is initialized?

A constant value.


What are the value and preference of global variable?

Global variables can have any value, in C they are aumaticatically initialized to zero.


Why pointers are passed by reference?

It is by-value, actually, not by-reference.


Why you use pointers?

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.


If a variable is not initialized the value of that variable is likely to be?

It's almost impossible to predict, but the value will be some data left by OS when it was previously used.


What happens if you don't initialize an instance variable of any of the primitive type in java?

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.


What is a constant object in c plus plus?

A constant object is one that, once initialized, never changes value.


Array of pointers?

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.


Why pointers are required?

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.


What is the default initial value for all numeric types?

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


What are the benefits of using pointers in PHP?

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.


What is the purpose of passing parameters by pointers?

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.