Exercise: Command Line Arguments

Questions for: Command Line Arguments

According to ANSI specifications which is the correct way of declaring main when it receives command-line arguments?
A:
int main(int argc, char *argv[])
B:
int main(argc, argv)
int argc; char *argv;
C:
int main()
{
    int argc; char *argv;
}
D:
None of above
Answer: A
No answer description is available. Let's discuss.
The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
A:
128 characters
B:
256 characters
C:
67 characters
D:
It may vary from one operating system to another
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz