Home » C Programming » Command Line Arguments » Question
  1. What will be the output of the following C code (if run with no options or arguments)?
    #include <stdio.h>
    int main(int argc, char *argv[])
    {
    printf("%d\n", argc);
    return 0;
    }
    1. Depends on the compiler
    2. Nothing
    3. 0
    4. 1
    5. None of these
Correct Option: D

1



Your comments will be displayed only after manual approval.