Basically the same but perhaps a slight difference, depending on context, in that the cob can be referred to as the vegitation upon which the kernels of corn grow, whereas the ear of corn would include both the cob and the kernels. A corn cob pipe (for smoking tobacco) however, would not include the kernels. Again, context would dictate usage.