I'm new to programming and to C and I'm trying to learn some new things. I want to make program, which will find minimum and/or maximum number. As far as I was making researches it would be the best to sort number with bubble sort, and than print out the first or the last number of that sorted array.
What I don't know is how to pass all those numbers to array via therminal on Linux.
For example:
-n means find the "n" max/min number of sorted array -m means find the smallest number -t means type of numbers (integer or float)Code:$ ./findnumber -n 4-m -t int 7 4 3 1 5 2 8 Minimum number is:4
I find out also, that you have to save those arguments into argc, argv, but I don't know how to go further.
Thanks for help.