I am trying to echo the command line arguments. An example would be if you the user entered "a.out null and void" then it would echo back "void and null."
I have a program written to echo back exactly what the user enters but I can't think of a way to make it do it in reverse order. Here's the code I have:
Code:int main(int argc, char *argv[]) { int i; for (i = 1; i < argc; i++) printf("%s%s", argv[i], (i < argc-1) ? " " : ""); printf("\n"); return 0; }