How to store corn
Best place: the fridge. USDA gives corn a fridge time (1 to 2 days, from the package date) and no pantry time, so it belongs in the fridge as soon as you get home. The freezer gives 8 months.

Where these times come from. USDA FoodKeeper has no entry named "corn". The 2 kinds on this page are the USDA entries that cover corn, copied without change from Corn on the cob and Canned goods. Each row in the table is one USDA entry; pick the one that matches what you have.
No guideline
1 to 2 days
from the package date
8 months
best quality within
USDA notes for corn
- canned: Canned items will be safe to eat well past the ‘use-by’ or ‘best by’ date as long as the can shows no dents, rust, or swelling.
How to tell corn has gone bad
General signs for produce: fresh vegetables, the group USDA lists corn under.
- Slimy, wet leaves on greens that were crisp before
- Soft or mushy spots on vegetables that were firm
- Sprouting or wrinkled skin on potatoes and onions
- Mould, often white or fuzzy, near the stem or cut end
- Sour or off smell replacing a vegetable's usual earthy scent
More on produce: fresh vegetables. The times above are quality guidelines, not safety limits; food that shows these signs goes out regardless of the date.
Storage habits that make the difference
Store leafy greens loosely wrapped in the crisper drawer, ideally with a paper towel to absorb extra moisture. Keep potatoes, onions and garlic in a cool, dark, dry place outside the fridge, and store potatoes away from onions since they spoil each other faster. Trim and wash vegetables just before cooking.
How to store other produce: fresh vegetables
Source: USDA FSIS FoodKeeper dataset (public domain). How we decode the data.