Coca-Cola reported second-quarter earnings that beat Wall Street expectations, as resilient demand for zero-sugar drinks and continued price increases offset a decline in global sales volumes.