answersLogoWhite

0


Best Answer

null

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the default value of a reference?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

CAN Overloaded functions can return default values?

I'm not sure I understand you as it wouldn't make sense for a function to return a default value. Do you actually mean can a function return an argument that has a default value? If so, then yes. Any argument passed to a function, whether defaulted or not, can be returned by the same function. If the argument is passed by value then you must return it by value. If passed by reference (which cannot be defaulted) then you can either return by reference or by value. However, if you pass by non-constant reference then you can just use the reference as an output argument, and use the actual return value for some other purpose, such as reporting any error condition(s) created by the function. Overloaded functions are no different to ordinary functions, the only criteria is that each overload has an unique signature. The return value does not form any part of the signature, thus signatures cannot differ by return type alone.


What is default value of Boolean type variable?

False will be the default value of the boolean datatype in java


What are the three components to data definition?

Type, name and initial value. If a value is not given and the type supports default construction, a default value is assigned.


What value is assigned to extern variable?

Default initial value of extern integral type variable is zero otherwise null.


What is the default value of integer in java?

According to the JLS, the default value of an int is 0. The default value of an object of type Integer is null. Of course, this applies only to class members fields, as local method-level fields must be explicitly assigned a value before use.

Related questions

What are the different parameter passing methods used by c plus plus?

Pass by value, constant value, reference and constant reference. Pass by value is the default in C++ (pass by reference is the default in Java).


Is absolute cell reference the default in Excel?

No. Relative cell referencing is the default.


CAN Overloaded functions can return default values?

I'm not sure I understand you as it wouldn't make sense for a function to return a default value. Do you actually mean can a function return an argument that has a default value? If so, then yes. Any argument passed to a function, whether defaulted or not, can be returned by the same function. If the argument is passed by value then you must return it by value. If passed by reference (which cannot be defaulted) then you can either return by reference or by value. However, if you pass by non-constant reference then you can just use the reference as an output argument, and use the actual return value for some other purpose, such as reporting any error condition(s) created by the function. Overloaded functions are no different to ordinary functions, the only criteria is that each overload has an unique signature. The return value does not form any part of the signature, thus signatures cannot differ by return type alone.


What is default values of different primitive data types?

in integral data types default value=0 in decimal type default value is 0.0 in boolean default value is fa


The intersection of the three default reference planes?

The origin.


What is default value of Boolean type variable?

False will be the default value of the boolean datatype in java


What is the default skin in Minecraft called?

Steve. (reference skin)


What is default value of formal arguments?

In C, there is no default value for formal parameters. In C++, there can be, but the value is whatever you declare in the function declaration.


What are the three components to data definition?

Type, name and initial value. If a value is not given and the type supports default construction, a default value is assigned.


Difference between a class and a struct?

By default, all of the members of a class are private and, by default, all of the members of a structure are public.Structure are value type where as class are reference type.'this' pointer will work only in class.Inheritance between classes is also private by default, and inheritance between structs is public by default.Classes support polymorphism, whereas structure do not.


How is a default value set in MS Access?

When you provide a default value for a field in Access, Access will automatically insert this value into the field when a record is inserted that has no value (NULL) for this field. Default values are used when there is a sensible default for a field.


What is the difference between default and value in the configuration file of the Tibco admin?

Default is the value that has been given for a GV during design .But in Value field we can modifie the GV value during deployement.