High-dose vitamin C supplementation does not prevent colds in the general population. It can reduce the duration of illness slightly in people under physical stress, such as marathon runners or those in very cold environments, but the effect for average adults is small.
A more effective approach is to address the foundations: consistent sleep, regular movement, a varied diet with adequate zinc and vitamin D, and minimal chronic stress. These factors determine immune responsiveness far more than any single nutrient.