0
C/C++ has an entrypoint int main(int argc, char **argv);, which provides the program with the arguments passed to it and a way to signal back the result:
#include <stdio.h>
int main(int argc, char **argv) {
for (int i = 0; i < argc; i++) printf("%s\n", argv[i]);
return 69;
}
More "modern"...