answersLogoWhite

0


Best Answer

In most computer languages, a procedure that returns a value is called a function and a procedure that does not return a value is called a subroutine or subprogram. Usually the languages treat the passing of arguments/parameters differently between functions and subroutines.

The C language does not distinguish between them. A subroutine that does not return a value is define as a "void" function indicating that no return value is used or available.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When a function does not return a value what kind of function is it called?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is need for function overloading in Java?

To overload a method in java, you only needs to write a method with the same name of other in your class but with diferente kind or number of parameters. For example: class MyClass{ void printNumber(int x){ System.out.println(x); } void printNumber(int x, int y){ System.out.println(x+y); } } the type of the value that your method return could change if you want.


What is the meanig of return 0 in c plus plus?

The return statement "returns" control to the function that invoked the function executing the return statement. Adding a value, such as return 0, adds a "return value", which the invoking function can inspect. The type of the returned value is declared along with the function's declaration, such as int myfunction(...) - it can be any type, not just an int. If the "invoking function" is the operating system, the return statement returns control back to the operating system. The value of the return, in this case an int, tells the operating system what the result of the execution of the entire program was. By convention, but this is operating system, shell, and/or programmer determined, a return value of 0 normally means "success", while anything else means "some kind of error", and the actual value identifies what kind of error.


Create a parameter by enclosing a value in a criterion in curly braces?

no you enclose them in [value] these kind of bracets!


What is meaning of 9v-0-9v transformer?

It is kind of transformers called center-tap transformer its main function is to transform primary voltage to 2 secondary voltages or vice versa. In your statement the transformer will convert the input voltage to 2 voltage each is 9v or the opposite it will convert the 2 input voltages with each 9v to a certain value depending on the turns ratio of the transformer.


When to create a template function?

A template function is used when you want to write some kind of function that can be applied to different data types. It is a form of overloading, but you don't have to actually write all of the overloaded variants.

Related questions

What kind of function finds the middle value?

The median.Median Value


Which type of procedure returns a value?

A function. However, not all languages differentiate between procedures and functions. In C and C++ for instance, a function that returns void is (technically) a procedure but it is still regarded as being a function even though it does not return a value. Also, in C++, constructors, destructors and type conversion operators don't have a return type of any kind (including void) but are not regarded as being either procedures or functions.


Why main() return zero?

The value zero indicates success. That is; no error. A non-zero value indicates an error of some kind. We typically use -1 (the all-ones bit pattern) to indicate failure, but we can return a specific value if we wish to specify the severity or type of error. The value is returned to the hosting environment (e.g., the operating system). Not all hosting environments make use of the return value, but for portability we must return an integer. The same applies to the exit() function: we must supply a value to indicate whether the program succeeded or failed.


A is a rule that assigns each value of the independent variable to exactly one value of the dependent variable?

This will be a math function. Each choice is only going to have one answer in this kind of function.


The Taj Mahal served as an example of aesthetic value and for this kind of function.?

tomb


What are different shapes of functions and relations?

A relation is just a set of ordered pairs. They are in no special order. Therefore there is no particular shape assigned to a relation. A function is a special kind of relation. A relation becomes a function when the x value only has one y value.


What is the control key sometimes called?

The control key on a Windows machine is also called the Ctrl key. On a Mac the key with this kind of function is called Command key.


What is a group of cells that perform a specific function called?

A tissue (not the kind you sneeze into) is a similar group of cells that perform the same function. a tissue. and a group of tissues working together is called an organ. and a group of organs working together is called an organ system.


What key is the control key?

The control key on a Windows machine is also called the Ctrl key. On a Mac the key with this kind of function is called Command key.


What is the function of osmosis?

The diffusion of water through the cell'smembrane is called osmosis (ahs MOH sis). A special kind of diffusion.


What kind of cell has a numerical value of zero?

Apart from the number 0 and any function whose value is 0: eg cos(pi/2), a cell with text character, a false equation or, in some cases a blank have a numerical value of 0.


How do you construct a logical function?

There is not a single answer to that, as there are lots of logical functions. The IF function is the most common. Like a spoken language you have an "if something, do this or else do this" structure in any kind of IF function. This is broken down to a condition and true value and a false value, as follows: =IF(Condition, True Value, False Value) To check exam results and tell someone if they passed or failed based on a 40% pass mark, with the mark being in A10, you could have this formula: =IF(A10>=40%, "You passed", "You failed")