answersLogoWhite

0

How do you use return function?

Updated: 8/18/2019
User Avatar

Kuddi

Lvl 1
14y ago

Best Answer

return;

or

return ;

PS: not function, statement!

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use return function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where do you use no argument no return in c function?

Where there is no need to return any type of value from a function


What is the use of return in function in c?

To return the exp. or const to the main fumction.


What is the use of return function in C programming?

To return the exp. or const to the main fumction.


Why you use 'integer' before function in C language?

To specify the return-type of the function.


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 use printf as a return value?

No, it is a function. But printf does return a value: the number of characters it has written.


What is return type of scanf function?

Use the help/manual.


How many types of function in C?

Well, it depends on what you mean by the type of a function. There are user defined functions and library functions.


Which purpose you want to use return statement in c?

Surprise, surprise: returning from a function.


What number will the function return if the input is 12.2?

36.6


What is a return statement used for?

It means end the function. Functions automatically end when execution reaches the end of the function, but you can return from a function at any point within the function with a return statement. If the function returns a value to its caller, you must provide a reachable return statement along with the value you wish to return.


Write a program to return a function using class in C Plus Plus?

Classes cannot return values, only functions can return values. But you cannot return a function from a function, you can only return a function pointer -- a pointer variable holding the address of the function you wish to return. All possible return values must be of the same type, therefore all function signatures and return types must be exactly the same -- only the name of the functions can differ.