In C, I'm trying to have it so that if i type ./a.out <filename> in the command line, it automatically prints out the filename i entered... i am unsure as to how to do this... can someone please point me to a place that has some example code?

thanks