The following questions refer to the code sample below.
1. extern char *optarg;
2. extern int optind
3.
4. main(int argc, char **argv)
5. {
6. char ch;
7.
8. while ((ch = getopt(argc, argv, "ABc:C")) != EOF) {
9. /* Do something useful here. */
10. }
11.}