TextRanch

The best way to perfect your writing.

Discover why 1,062,726 users count on TextRanch to get their English corrected!

1. Input your text below.
2. Get it corrected in a few minutes by our editors.
3. Improve your English!

One of our experts will correct your English.

Our experts

return value vs returned value

Both 'return value' and 'returned value' are correct, but they are used in different contexts. 'Return value' is used to refer to the value that a function sends back to the calling code, while 'returned value' is used to describe the value that has been sent back by the function.

Last updated: March 15, 2024

return value

This phrase is correct and commonly used in programming to refer to the value that a function sends back to the calling code.

Use 'return value' when talking about the value that a function returns to the calling code.

Examples:

  • The return value of the function is an integer.
  • Check the return value of the function before proceeding.
  • In Perl, a return value or values of a subroutine can depend on the context in ... and a void context where the calling code doesn't expect any return value at all.
  • Return value optimization, or simply RVO, is a compiler optimization technique that involves eliminating the temporary object created to hold a function's return ...
  • The data type of the return value must match the method's declared return type; you can't return an integer value from a method declared to return a boolean.
  • In most programming languages, the return statement is either "return" or "return value", where value is a variable or other information coming back from the ...

Alternatives:

  • output value
  • result value
  • response value
  • function value
  • response

returned value

This phrase is correct and is used to describe the value that has been sent back by a function.

Use 'returned value' when referring to the value that has been returned by a function.

Examples:

  • The returned value is stored in a variable.
  • You can access the returned value of the function.
  • To return a reference from a function, use the reference operator & in both the function declaration and when assigning the returned value to a variable: Example ...
  • Call the getYear function: store the returned value of the function in a new variable named yearToday. Call the getYear function: store the returned value of the ...
  • If a programming language allows the return statement to return a value back to the code, then the returned value can be used in the code that called the ...
  • This function then again calls _exit() , which is a system call that tells the OS to save the returned value of your main() function in the process ...

Alternatives:

  • value returned
  • resulting value
  • output value
  • function output
  • response

Related Comparisons

What Our Customers Are Saying

Our customers love us! We have an average rating of 4.79 stars based on 283,125 votes.
Also check out our 2,100+ reviews on TrustPilot (4.9TextRanch on TrustPilot).

Why choose TextRanch?

Lowest prices
Up to 50% lower than other online editing sites.

Fastest Times
Our team of editors is working for you 24/7.

Qualified Editors
Native English experts for UK or US English.

Top Customer Service
We are here to help. Satisfaction guaranteed!