China on Tuesday confirmed that it has reached an agreement with India to end the standoff between the two armies in eastern Ladakh.