All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Side effect?

Definition 1.14 High School Computer Science · Chapter 1 — Specifications, Assertions and Tests

A side effect of a function is any change it makes that outlives the call, apart from the value it returns: a change to a list it received as an argument, to a variable outside the function, to a file, or text printed on the screen.

Read in context →