I wrote a code which has to display main parameters, but when I compiled it and typed in "*" program shows my file structure.
Command in cmd looks like this: program.exe 1 2 3 *
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const* argv[]) {
for (int i=0; i<argc; i++) printf("%s\n", argv[i]);
return 0;
}
The result is:
program
1
2
3
program.c
program.exe
10-03-20
11-02-20
And my question: Is it possible to force program to print "*" instead of listing files.