The pressure at the end, after the gas has expanded freely due to heating, will be higher than the pressure at the start. Heating the gas increases its temperature, causing the molecules to gain kinetic energy and move more vigorously, leading to increased collisions with the walls of the container and thus a higher pressure. (I think)