Command Line Arguments

Q1: Which of the following statements are FALSE about the below code?
int main(int ac, char *av[])
{
}

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()

ANS:A -

ac contains count of arguments supplied at command-line

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.