MCQOPTIONS
Bookmark
Saved Bookmarks
→
Command Line Arguments
→
General
→
What is the index of the last argument in command...
1.
What is the index of the last argument in command line arguments?
A.
argc 2
B.
argc + 1
C.
argc
D.
argc 1
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following C code (run without any command line arguments)? #include int main(int argc, char *argv[]) { printf("%s n", argv[argc]); return 0; }
What will be the output of the following C code (run without any command line arguments)? #include int main(int argc, char *argv[]) { while (*argv++ != NULL) printf("%s n", *argv); return 0; }
What will be the output of the following C code (run without any command line arguments)? #include int main(int argc, char *argv[]) { while (argc--) printf("%s n", argv[argc]); return 0; }
What will be the output of the following C code (if run with no options or arguments)? #include int main(int argc, char *argv[]) { printf("%d n", argc); return 0; }
What is the index of the last argument in command line arguments?
A program that has no command line arguments will have argc _________
What is argv[0] in command line arguments?
What is the second argument in command line arguments?
What is the first argument in command line arguments?
What will be the output of the following C statement? (assuming the input is cool brother in city ) printf( %s n , argv[argc]);
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies