Ionic compounds are usually composed of metal cations (positively charged ions) and nonmetal anions (negatively charged ions). Ionic compounds contain strong ionic bonds which occur as a result of the attraction between the oppositely charged ions. At room temperature, ionic compounds also tend to be crystalline solids. In this arrangement, not only are the cations and anions attracted to each other within a particular ionic molecule, the cations in one ionic molecule are also attracted to the anions in another ionic molecule. This creates very stable structures with high melting points.
The nuclear force is attractive and not repulsive.
The nuclear force is very weak and much smaller in relative magnitude than the electrostatic and gravitational forces.
Explanation:
Nuclear force is the strongest existing force in the nature.
It has the shortest range.
Its main function is to hold the subatomic particles together in nature.
The nuclear force is created by the exchange of pi mesons between the nucleons of an atom, but for this exchange to happen the particles must be close to one another of the order of few femtometer.
At about 1 femtometer the nuclear force is very strongly attractive in nature but at distance greater than 2.5 femtometer it fades away.
The force becomes repulsive in nature at distance less than 0.7 femtometer.
This force holds the likely charged protons together in the nucleus.