answersLogoWhite

0

because function have return sts thatway it is not necessary out parameter to function

User Avatar

Wiki User

9y ago

What else can I help you with?

Continue Learning about Engineering

What is an actual parameter?

A formal perimeter refers to an identifier that is used in a method to stand for the value that is passed into the method by a caller. An actual perimeter on the other hand refers to the actual value that is passed into the method by a caller.


What does the cons function do in clojure?

Returns a new sequence where the first parameter is the first element and the second parameter is the rest.


Why void is used in c language?

void as function return-type means no return value void as function parameter means no parameter void * as pointer type means generic pointer


What should you declare in a function prototype?

storage_class return_type name parameter-list


What is a variable that is used within a function?

If the variable is declared within the function body, it is a local variable, one that is local to the function. Local variables fall from scope when the function returns, they are only accessible within the function. However, local variables can be returned by value, which creates an automatic variable that is returned to the caller. If the caller does not store the return value, the automatic variable falls from scope when the expression containing the function call ends. However, the expression may evaluate the return value without storing it. Note that functions cannot return local variables by reference since the local variable falls from scope when the function returns. If the variable is passed as an argument to the function, then the variable is a parameter of the function. Arguments may be passed by value or by reference, depending upon the function signature. Passing by value means the function parameter is a copy of the argument (if the argument is an object, the object's copy constructor is invoked automatically). Thus any changes made to the parameter within the function are not reflected in the argument that was originally passed, and the parameter will fall from scope when the function returns. However, the value of the parameter can be returned as previously explained. Passing by reference means the function parameter refers directly to the argument that was passed. Thus any changes made to the parameter are reflected in the argument. Parameters that are declared as constant references assure the caller that the reference's immutable members will not be altered by the function. If the parameter is a non-const reference but the caller does not wish changes to be reflected in the argument, the caller should pass a copy of the argument instead.

Related Questions

Does a function always require a parameter?

No. For example, function getpid never requires a parameter.


When was INOUT created?

INOUT was created in 2004.


What is parameter is parameter is?

formal parameter is we accept in function body/defination actual parameter is we pass from calling function to function body. Ex : int a,b; void add (a,b) ; where a & b is actual parameter // calling function void add(int i,int j) where i & j are formal parameter // function body { } By Darshan Paliwal


What is the function of the replace parameter in Oracle?

The function of the replace parameter in Oracle is to replace a sequence of characters in a string with other characters, usually in sets of characters.


What is call by refrence?

When calling a function, passing a variable's address as function parameter.


What is an actual parameter?

A formal perimeter refers to an identifier that is used in a method to stand for the value that is passed into the method by a caller. An actual perimeter on the other hand refers to the actual value that is passed into the method by a caller.


What does the cons function do in clojure?

Returns a new sequence where the first parameter is the first element and the second parameter is the rest.


What is the intuition behind the envelope theorem?

The envelope theorem states that the derivative of the value function with respect to a parameter is equal to the partial derivative of the value function with respect to that parameter, evaluated at the optimal values of the control variables. In simpler terms, it tells us that the change in the value function due to a small change in a parameter is equal to the change in the value function that would occur if the control variables were adjusted to keep the parameter constant.


What is Call by value?

when the function is call by value,u are making any changes in formal parameter does not reflect the actuasl parameter.


Why void is used in c language?

void as function return-type means no return value void as function parameter means no parameter void * as pointer type means generic pointer


How do I use the IF function?

The IF function takes three parameters. The first is an expression, such as an inequality, that will evaluate to either true or false. If the expression is true the second parameter is used, otherwise the third parameter is used.


How do you pass the parameter in applet?

If you have the function main()... You can use its arguments to pass information.