Top "Return-value" questions

Return value is the result of evaluation of a return statement.

store return value of a Python script in a bash script

I want to execute a python script from a bash script, and I want to store the output of the …

python bash return return-value
Return value from a VBScript function

I have two functions, and I am trying to use the result of one function in the second one. It's …

function vbscript return-value
Should I return EXIT_SUCCESS or 0 from main()?

It's a simple question, but I keep seeing conflicting answers: should the main routine of a C++ program return 0 or …

c++ c return-value main
Should functions return null or an empty object?

What is the best practice when returning data from functions. Is it better to return a Null or an empty …

c# .net function return-value
returning a Void object

What is the correct way to return a Void type, when it isn't a primitive? Eg. I currently use null …

java generics return-value
Return a "NULL" object if search result not found

I'm pretty new to C++ so I tend to design with a lot of Java-isms while I'm learning. Anyway, in …

c++ return-value sentinel
Return value from nested function in Javascript

I have a function that is set up as follows function mainFunction() { function subFunction() { var str = "foo"; return str; } } var …

javascript function nested return-value return
Multiple values in single-value context

Due to error handling in Go, I often end up with multiple values functions. So far, the way I have …

go error-handling return-value multiple-return-values
MATLAB - multiple return values from a function?

I'm writing 2 functions in matlab, an initialize function and a function to insert items into an array treating it like …

matlab return-value
Get return value from setTimeout

I just want to get the return value from setTimeout but what I get is a whole text format of …

javascript return settimeout return-value