I recently was nuclear physics there I learned that the the actual mass of a nucleus is less than what we expect it to be (simply adding the masses of the nucleons). It is due to the release of binding energy and using $E=mc^2$ we can definitely say that some mass is gone.
The question is: Does this happen when endothermic or exothermic reactions take place? For example, does the mass of the products increase in comparison to the reactants if it is an endothermic reaction. Or the above phenomenon is observed only in the atomic level.
Also, where (the neutron or the proton) does the lost mass in the nuclear phenomenon come from? Which particle loses the mass?
Thank you.