The nucleus of an atom is made up of protons and neutrons ( two types of baryons ) joined by the nuclear force . The nucleus of an atom consists of protons and neutrons ( two types of baryons ) bound by the nuclear force ( also known as the residual strong force ) .