answersLogoWhite

0

Why doesn't C have nested functions?

User Avatar

Anonymous

12y ago
Updated: 8/18/2019

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.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the compound in c language?

compound c language is complicated where we need to use many nested functions and loops


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.


Can you have nested header files in C?

Yes.


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; }


What is nested class in c plus plus?

s.


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.


What term is used to describe joining two or more functions into super function in Excel?

If one function is inside another, then the functions are nested.


What is the definition of 'nested' in C programming?

In C a structure within a structure is called nested. For example, you can embed a while loop in another while loop or for loop in a for loop or an if statement in another if statement.


What term describes two functions linked together by using output of the first function and input of second function?

Chained or nested functions.


In C which loop is embedded within another loop?

The nested loop.


What is nesting in C programming?

Nesting can be a very handy tool in C++, but should be avoided if possible.C++ gives us If statements, For loops and many other things. These can be nested. For example:A nested If statement://outer if statementIf( this is true ){//nested if statementif( this is also true ){//do something}else{//do something else}}


In C can functions be defined inside functions?

Standard C (C89 and C99 are the official standards) does not allow to define functions inside functions (known as nestedfunctions). However, some compilers, such as the free GCC allow nested functions as a language extension.