answersLogoWhite

0

Surprise, surprise: returning from a function.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you use return function?

return;orreturn ;PS: not function, statement!


In a java program in a return statement with string concatenation how do you print a blank line?

use "\n" between the words where you want a new line


What is function of GOSUB statement in subrouteen?

in BASIC, GOSUB and the RETURN statement allows the use of subrouteens.


What happens by the scanf statement in c?

It's a function, not a statement. Use your help system to find out its purpose.


Would you use lite or light when making a statement of we want to lite fireworks?

You would want to use the word light when making the statement "We want to light fireworks


Why use void in main of java?

No. void is not a data type. It is mandatory for all java methods to return something and if it is not going to return anything, we have to mark the method with a "void" return type to let the JVM know that it must not expect anything from the method.


How do you use return?

In C/C++ programming and most other procedural languages, you use a return statement to return control to the calling function. In the case of the global main function, a returnstatement terminates the program, releasing all memory used by the program and returning control to the execution environment.Functions that return void do not return a value and therefore do not require a return statement, unless the function needs to return early (before falling off the end of the function). Functions that return values must use a returnstatement to return the appropriate value to the caller.In C++ (but not in C), the global main function does not require a return statement unless returning early. When omitted, the global main function implicitly returns the value 0 (to the execution environment) when execution falls off the end of the function. To return any other value, a return statement is required.


Can you track your tax return to see where it is?

Use the below enclosed link for this purpose.


How can a method return an object?

With the return statement, followed by the object you want to return. For example, in Java:String myMethod1() {return "abcde";// Note: The above is shorthand notation; you can also use the new operator.}MyDate myMethod2() {MyDate x = MyDate(2012, 1, 1);return x;// Note: This assumes you have created the class MyDate,// With the corresponding constructor.}


Can you use lip gloss on face?

For what purpose you want to use it?


Can you use conditional operator in cout statement?

Yes, but 'cout' is not a statement! Examples for statements: null-statement, block, expression, if-else, while, do-while, for, continue, switch, break, return.


How can a loop be structured so that it terminates a statement in the middle of its block?

I think you want to use statement break.