1How do you print every argument after the program name?Afor (i = 0; i <= argc; i++) puts(argv[i]);Bputs(argv);Cfor (i = 1; i <= argc; i++) puts(argv[i]);Dfor (i = 1; i < argc; i++) puts(argv[i]);View AnswerDiscussWorkspaceReportSaveEasy
2What does argv[0] usually contain?AThe program's name or pathBNULLCThe number of argumentsDThe first user argumentView AnswerDiscussWorkspaceReportSaveEasy
3What will be the output of the program?#include <stdio.h> int main(int argc, char *argv[]) { printf("%d\n", argc > 1); return 0; }A0B1C2DGarbage valueView AnswerDiscussWorkspaceReportSaveMedium
4What is argv[argc] guaranteed to be?AAn empty stringBA null pointerCThe last argumentDUndefinedView AnswerDiscussWorkspaceReportSaveEasy
5Which parameter of main holds the number of command-line arguments?AargsBargcCenvpDargvView AnswerDiscussWorkspaceReportSaveEasy