What is buffer, and how does it affect the pH of a solution?

A buffered solution is one that resists a change in pH.