answersLogoWhite

0

How function can be nested in c?

Updated: 8/10/2023
User Avatar

Wiki User

13y ago

Best Answer

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;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

we can't define a function in c,because the compiler doesn't allow it.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

No.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How function can be nested in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the if function within the if function?

nested if


What is if function withan an if function call?

A nested function.


If Function within an If Function?

Its called nested if


What is an included IF function in which the action to be taken for the true or false case includes yet another IF function?

You insert the second IF function into the first one, creating what is called a nested If. Another IF can be put in the True or False part of an existing IF function. In as situation where there is a need for another IF when the first condition is true, the structure could then be something like this:=IF(condition, IF(condition, true, false), false))Note there are two brackets at the end, closing the two IF functions.


Why doesn't C have nested functions?

Nested functions are used in some languages to enclose multiple functions and variables into a container so that individual function and variable are not seen from outside. In,C this can be done by putting such functions in a seperate source file.


An If function within an if function in Excel is called what?

A nested if.


What is the nested formula of MS Excel?

A nested formula is where one or more functions are placed inside another function to make a formula. For example you can write a formula where you put an IF function within an IF function and this would be a nested formula.


Can include files be nested in c?

Yes, include files can be nested in C and C++. In fact, most library implementations do just that.


What is it called when one function is contained within another function?

nested


Can you have nested header files in C?

Yes.


What is the definition of parent function?

When a function is nested inside another function, the outer one is the parent, the inner is the child.


Which term describes a function used as an argument for another function?

In Excel a function within another function would be called a nested function.