Top "Return" questions

A return statement causes execution to leave the current subroutine and resume at the point in the code immediately after where the subroutine was called, known as its return address.

C# compiler error: "not all code paths return a value"

I'm trying to write code that returns whether or not a given integer is divisible evenly by 1 to 20, but I …

c# return code-analysis
return, return None, and no return at all?

Consider three functions: def my_func1(): print "Hello World" return None def my_func2(): print "Hello World" return def my_…

python null return
How to return multiple objects from a Java method?

I want to return two objects from a Java method and was wondering what could be a good way of …

java return
How to Exit a Method without Exiting the Program?

I am still pretty new to C# and am having a difficult time getting used to it compared to C/…

c# methods return exit
Setting PayPal return URL and making it auto return?

This is a follow up question to: PHP: Easy way to start PayPal checkout? So, my problem is that I …

paypal return
Accessing a class' member variables in Python?

class Example(object): def the_example(self): itsProblem = "problem" theExample = Example() print(theExample.itsProblem) How do I access a class's …

python class methods return
Return a value from AsyncTask in Android

One simple question: is it possible to return a value in AsyncTask? //AsyncTask is a member class private class MyTask …

java android asynchronous android-asynctask return
Difference between return 1, return 0, return -1 and exit?

For example consider following code: int main(int argc,char *argv[]) { int *p,*q; p = (int *)malloc(sizeof(int)*10); q = (…

c return exit
Return char[]/string from a function

Im fairly new to coding in C and currently im trying to create a function that returns a c string/…

c arrays string char return
What does the return keyword do in a void method in Java?

I'm looking at a path finding tutorial and I noticed a return statement inside a void method (class PathTest, line 126): …

java methods return void