What happens when citric acid is titrated with sodium hydroxide?

Citric acid is a triprotic acid; i.e. it has three replaceable H atoms. You can google the titration of a triprotic acid, such as H3cit or H3PO4 to see a titration curve.