Computer Science, asked by Shantul, 11 months ago

what is nested procedure

Answers

Answered by honeysingh96
2
nested procedure is a function which is defined within another function, the enclosing function.
Answered by sarvesh9016
3
nested procedure is a function which is defined within another function, the enclosing function. Due to simple recursive scope rules, a nested function is itself invisible outside of its immediately enclosing function, but can see (access) all local objects (data, functions, types, etc.) of its immediately enclosing function as well as of any function(s) which, in turn, encloses that function. The nesting is theoretically possible to unlimited depth, although only a few levels are normally used in practical programs.

Nested functions are used in many approaches to Structured programming , including early ones, such as ALGOL, simul 67 and pascal, and also in many modern dynamic languages and functional language . However, they are traditionally not supported in the (originally simple) C-family of languages.

Similar questions