answersLogoWhite

0

What are the differant return types of a function?

Updated: 8/20/2019
User Avatar

Wiki User

10y ago

Best Answer

It depends a bit on the programming language. In a language such as Java, the return type can be:

* "void", to indicate that actually nothing is returned.

* Any of the primitive data types: char, int, long, double, etc.

* Any object data type. Listing them doesn't make sense; there are hundreds, perhaps thousands of built-in classes (object types), and the programmer can create as many additional classes as he wants.

In other programming languages, the situation is usually similar, although languages that don't support object-oriented programming won't allow the third option.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the differant return types of a function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you be in love with two different people?

Absolutely you can be in love with many differant people at the same time! Differant types of love!


Write a program to return a function using class in C Plus Plus?

Classes cannot return values, only functions can return values. But you cannot return a function from a function, you can only return a function pointer -- a pointer variable holding the address of the function you wish to return. All possible return values must be of the same type, therefore all function signatures and return types must be exactly the same -- only the name of the functions can differ.


What kind of stock do you get in your market?

In my market we get all differant types of stock including fruit and vegetables and many differant types of objects from house hold furature to cd's and mp3 playes.


How many types of function in C?

Well, it depends on what you mean by the type of a function. There are user defined functions and library functions.


What are boogie boards made out of?

Normally they are made of differant types of foam


Are all 700r4 transmission dipsticks and tubes the same?

vans are differant then pick up trucks,And so are cars that means there are 3 differant types and lenths.


How many different types of jellyfish is there in the UK?

well i can say there are over 1000000000 in differant types of the world in the UK


Is there an RX6 Mazda?

yes several differant types... but i think they're all concept


How do you use return function?

return;orreturn ;PS: not function, statement!


What TYPES of return values are allowed?

Apart from basic Data types (int , char , float and double ) you can even return Class Objects.Nearly any type of Data can be returned by a function including pointers to void data type.


How were people of different races created?

it all started in 1893 when Victoria said i want races of people which means differant types o people so she created religeon and people were differant


What is the use of void data types?

When a function declares it returns void, it means it does not return anything. Sometimes the function doesn't need to return anything, so using void is convenient. In C: using voidinstead of parameters means 'there's no parameters'