C Programming - Command Line Arguments
|
|
|
|
Exercise"Everything should be made as simple as possible, but not simpler."
- Albert Einstein
|
| 1. |
Which of the following is TRUE about argv? |
| 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 |
Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
|
| 2. |
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() |
Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
|
|
|