Home / C Programming / Command Line Arguments :: Discussion

Discussion :: Command Line Arguments

  1. Does there exist any way to make the command-line arguments available to other functions without passing them as arguments to the function?

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Using the predefined variables _argc, _argv. This is a compiler dependent feature. It works in TC/TC++ but not in gcc and visual studio.


Be The First To Comment