answersLogoWhite

0

How do you use return function?

User Avatar

Kuddi

Lvl 1
15y ago
Updated: 8/18/2019

return;

or

return ;

PS: not function, statement!

User Avatar

Wiki User

15y ago

What else can I help you with?

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.


How do I use void in Python?

In Python, void is not a specific keyword or type like in some other programming languages. Instead, when you want to define a function that does not return a value, you simply define it without a return statement or use return without a value. Such a function is often referred to as returning None by default. For example: def my_function(): print("This function does not return anything.") Here, my_function() executes its code but does not return a value.


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.