⚡ Black Friday Offer: Click here and shop now!

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 returning value

Both "return value" and "returning value" are correct, but they are used in different contexts. "Return value" refers to the value that a function sends back to the calling code, while "returning value" would be used in a sentence describing the action of returning a value.

Last updated: March 15, 2024 • 823 views

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.

This phrase is used in programming to describe the value that a function returns to the part of the code that called it.

Examples:

  • The return value of the function is an integer.
  • Make sure to 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
  • response value
  • function value
  • response

returning value

This phrase is correct and would be used in a sentence describing the action of returning a value.

This phrase would be used in a sentence to describe the action of returning a value to a specific location or person.

Examples:

  • She is returning value to the customer.
  • The function is returning value to the main program.
  • 1 Returning Value From the Method : 2 Live Example : Returning Value from the Method; 3 Output : 3.1 There are two important things to understand about ...
  • Returning value from Thread ..... Returning Value From a Method Using java( Threads) · 2 · Using ExecutorService to repeatedly perform a ...
  • Jan 21, 2015 ... But I'm always pleased to see more companies returning value to shareholders by raising the dividend. Listed below are several companies ...
  • Note: if you take the & off from the function, the second echo will be 2, because without & the var $num contains its returning value and not its returning reference  ...

Alternatives:

  • giving value back
  • handing back value
  • sending value back
  • passing value back
  • restoring value

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!

×

⚡️ Black Friday 2024 ⚡️

Stock up on credits for the entire year!

Grab this offer now!