Math, asked by Dhyana1805, 5 months ago

what is closures.
please no Google answers ​

Answers

Answered by HimanshuSomvanshi
10

Answer:

In programming languages, a closure, also lexical closure or function closure, is a technique for implementing lexically scoped name binding in a language with first-class functions. Operationally, a closure is a record storing a function together with an environment.

Answered by rvss91024
0

Answer:

In programming languages, a closure,also ,lexical closure, or function closure, is a technique for implementing lexically scoped name binding in a language with first-class functions. operationally, a closure is a record storing a function [a] together with an environment. [1] The environment is a mapping associating each free variable of the function (variables that are used locally, but defined in an enclosing scope) with the value or reference to which the name was bound when the closure was created.[b] Unlike a plain function, a closure allows the function to access those captured variables through the closureeir values of refrence, even when the function is invoked outside

Similar questions