Quantcast
Channel: Articles– GeeksforGeeks
Viewing all articles
Browse latest Browse all 339

Pure Functions

$
0
0
A function is called pure function if it always returns the same result for same argument values and it has no side effects like modifying an argument (or global variable) or outputting something. The only result of calling a pure function is the return value. Examples of pure functions are strlen(), pow(), sqrt() etc. Examples […]

Viewing all articles
Browse latest Browse all 339

Trending Articles