हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

What is the side effect of the impure function? Give example. - Computer Science

Advertisements
Advertisements

प्रश्न

What is the side effect of the impure function? Give example.

टिप्पणी लिखिए

उत्तर

Impure Function:

  • The return value of the impure functions does not solely depend on its arguments passed. Hence, if you call the impure functions with the same set of arguments, you might get different return values. For example, random( ), Date( ).
  • They may modify the arguments which are passed to them.
shaalaa.com
Pure Functions
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Function - Evaluation [पृष्ठ ९]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 1 Function
Evaluation | Q 3. | पृष्ठ ९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×