These two types of USB cables are not interchangeable. It's possible to tell the difference between the two sorts of cables by their primary function: charging or transferring data. In most cases, a data cable can also be used to recharge a device.