Why should a program return a value?
3334
What should main() return in C and C++?
599
Is Java "pass-by-reference" or "pass-by-value"?
106315
Is it useful to test the return of "new" in C++?
32976
Why cast unused return values to void?
136926
How to return 2 values from a Java method?
65383
Is it Possible to Return a Reference to a Variable in C#?
48161
Since I can't return a local variable, what's the best way to return a string from a C or C++ function?
123705
Why does a=0; let a++ return exit code 1?
15123
What are copy elision and return value optimization?
8738
Should a retrieval method return 'null' or throw an exception when it can't produce the return value?
26675
Can I tell the compiler to consider a control path closed with regards to return value?
82662
string = string + int: What's behind the scenes?
102527
Can a C++ function be declared such that the return value cannot be ignored?
145784
Is the pointer guaranteed to be > a certain value?
34534
Difference between returning reference vs returning value C++
123554
In C why do you need a statement after a goto label?
107469
What is the best way to return an error from a function when I'm already returning a value?