

MCQOPTIONS
Saved Bookmarks
1. |
According to ANSI specifications which is the correct way of declaring main when it receives command-line arguments? |
A. | <pre><code class="cpp">int main(int argc, char *argv[])</code></pre> |
B. | <pre><code class="cpp">int main(argc, argv) int argc; char *argv; </code></pre> |
C. | <pre><code class="cpp">int main() { int argc; char *argv; } </code></pre> |
D. | None of above |
Answer» B. <pre><code class="cpp">int main(argc, argv) int argc; char *argv; </code></pre> | |