Question: [C programming] How do you intake int inputs from the argument command line and store them into variables? (Different from using scanf() for user input)
[C programming]
How do you intake int inputs from the argument command line and store them into variables? (Different from using scanf() for user input)
Example: assuming that the executable file is test.out)
code:
int a, b, c;
main(int argc, char **argv){
}
commandline: ./test.out 2 4 32
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
