Difficulty: Easy
Correct Answer: Jan Feb Mar
Explanation:
Introduction / Context:
This question tests knowledge of Turbo C's non-standard globals _argc and _argv and how they mirror the standard argc/argv. It also evaluates understanding of how command-line arguments are iterated and printed.
Given Data / Assumptions:
Concept / Approach:
_argv[0] refers to the program name ("sample"). The loop begins at i = 1, so it prints only user-supplied arguments. The three arguments are "Jan", "Feb", and "Mar". The output will be those three separated by spaces (with a trailing space, which is visually harmless).
Step-by-Step Solution:
Verification / Alternative check:
Changing the command to sample A B prints "A B". Starting at i = 0 would also print the program name, which this code intentionally avoids.
Why Other Options Are Wrong:
Common Pitfalls:
Assuming standard C only; here the code relies on Turbo C extensions but still runs as intended in that environment.
Final Answer:
Jan Feb Mar
Discussion & Comments