Computer Science, asked by sam4983, 9 months ago

what do you mean by pure and impure methods​

Answers

Answered by ranishubhashni
2

Explanation:

Pure function takes place in Call by Value. Impure function takes place in Call by Reference. In pure function it doesn't modify the external variable/data outside the scope and results the same output given in the same input. In impure function it mutates data/variable outside it's lexical scope.

Hope this helps..

Answered by mary724
3

Explanation:

Pure function takes place in Call by Value. Impure function takes place in Call by Reference. In pure function it doesn't modify the external variable/data outside the scope and results the same output given in the same input. In impure function it mutates data/variable outside it's lexical scope Hope this helps..

Similar questions