answersLogoWhite

0

When a function call by itself?

Updated: 12/20/2022
User Avatar

Wiki User

6y ago

Best Answer

Recursion.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When a function call by itself?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Difference between function and recursive variable?

A function can map for sets with infinite elements. Recursive variables, being 'algorithms of algorithms', are restricted to finite elements.


Which function call Does not consume stack space?

Calling an in-line function, which is not actually a function-call.


What happens if recursion function is declared inline?

An inline function replaces the call to the function by the body of the function, thus reducing the overhead of saving the context in stack. This is good for functions which are small in size and called occasionally. A recursive function calls an instance of itself and thus can be a deeply nested. Different compilers handle this differently. Some will inline it up to a certain depth and then call a non-inlined instance for further recursion; others will not inline the function at all and generate a normal function call.


How function can be nested in c?

A function can call other functions (or itself), but a function-definition cannot be nested in another function-definition: int main (void) { void wont_compile (void) { puts ("Won't compile"); } wont_compile (); return 0; }


Explain the passing parameters as function in Call by Value and Call by Reference and then distinguish between them?

Call by value essentially passes a copy of an object's value whereas call by reference essentially passes the object itself. Pass by reference is the preferred method whenever possible as call by value will automatically invoke the object's copy constructor, which is often unnecessary, especially if the object is not affected by the function call (pass by constant reference).

Related questions

Is it possible to call library function recursiviely?

No, once you call a library (or any) function, you have to wait until it has returned.Of course the function may call itself, but you do not know or care of that.


What is direct recursion?

When a function calls itself it is called as direct recursion. A function calls other functions which eventually call the original function is called as indirect recursion.


Difference between function and recursive variable?

A function can map for sets with infinite elements. Recursive variables, being 'algorithms of algorithms', are restricted to finite elements.


What function in Microsoft Excel 2003 to write the amount in word?

Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.


What is meant by a function call?

A function call is where you "call" a function and execute its body. For example: void example() { } int main() { example(); // call the function "example" and execute its bodyreturn 0; }


Which function call Does not consume stack space?

Calling an in-line function, which is not actually a function-call.


What happens if recursion function is declared inline?

An inline function replaces the call to the function by the body of the function, thus reducing the overhead of saving the context in stack. This is good for functions which are small in size and called occasionally. A recursive function calls an instance of itself and thus can be a deeply nested. Different compilers handle this differently. Some will inline it up to a certain depth and then call a non-inlined instance for further recursion; others will not inline the function at all and generate a normal function call.


What is if function withan an if function call?

A nested function.


How function can be nested in c?

A function can call other functions (or itself), but a function-definition cannot be nested in another function-definition: int main (void) { void wont_compile (void) { puts ("Won't compile"); } wont_compile (); return 0; }


Explain the passing parameters as function in Call by Value and Call by Reference and then distinguish between them?

Call by value essentially passes a copy of an object's value whereas call by reference essentially passes the object itself. Pass by reference is the preferred method whenever possible as call by value will automatically invoke the object's copy constructor, which is often unnecessary, especially if the object is not affected by the function call (pass by constant reference).


What do you call the inverse function of the exponential function?

Logarithmic Function


What is Bios function call in 8086 microprocessor?

The BIOS function in the 8086 microprocessor is called an interrupt function. It is an interrupt function because it is not called by a function call instruction.