Home / C Programming / Command Line Arguments :: Point Out Correct Statements

C Programming :: Command Line Arguments

  1. Which of the following is TRUE about argv?

  2. A.
    It is an array of character pointers
    B.
    It is a pointer to an array of character pointers
    C.
    It is an array of strings
    D.
    None of above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following statements are FALSE about the below code?

    int main(int ac, char *av[]) { } 

  4. A.
    ac contains count of arguments supplied at command-line
    B.
    av[] contains addresses of arguments supplied at a command line
    C.
    In place of ac and av, argc and argv should be used.
    D.
    The variables ac and av are always local to main()

    View Answer

    Workspace

    Discuss Discuss in Forum