How to convert grams to cup?

1 Cup is equal to how many grams?
The quantity of grams in a cup changes and is dependent on the ingredients because of the fact that the cup is a unit of volume and the gram is a unit of weight. The weight in grams differ according to the food item.