Calculating cubic centimeters (cc or cm³) to grams (g) depends on the substance you are working with and its density. Try this cc to grams converter that will help you to calculate the cubic centimeters in one click.
Measure the volume of the substance in cubic centimeters (cc).
Find the density of the substance. The density is the mass of the substance per unit volume and is usually expressed in grams per cubic centimeter (g/cm³).
Multiply the volume in cc or cm³ by the density in g/cm³ using the formula.
Mass (g)=Volume (cc or cm³)×Density (g/cm³)
In some subject, yes 1 cc is equal to 1 gram. This is all depend on substances that which you are using.
No its not possible because 5 grams of other thing to take up 5cc space but they are not related measurements.