Unless you are extremely familiar with fresh corn, by its appearance alone, you can’t determine whether or not it is rotten. The only way to find out is by tasting it. You should always err on the side of caution and throw away any food that smells bad or looks weird.