You can char corn without a grill in a cast iron skillet. Fully preheat the skillet over medium-high heat, add in oil, then corn. Leave undisturbed for a few minutes until a charred area develops. If using corn on the cob, turn the corn to char a few sides.