How does changing the dimensions of a cylinder affect the cylinder's volume?

It's making it bigger or smaller so the size would change the volume