ok this deal with command line arguments is a bit weird and hard to understand.
basically I got the following code that isn't working, it's giving a
Segmentation Fault and I don't know why
wouldn't i=argc in loop (argc -which is the total # of arguments on command line)? then decrement to 0???Code:/* prints command line in reverse order */ #include <stdio.h> main(int argc, char *argv[]) { int i; for( i=argc ; i > 0; i-- ) printf("%s\n", argv[i]); return i; }