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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!