Question: 1. (6 marks) Create a FirstProgram program. Try different integer values as the return value from main.. Steps a. Create a new .c file using

 1. (6 marks) Create a FirstProgram program. Try different integer values

1. (6 marks) Create a FirstProgram program. Try different integer values as the return value from main.. Steps a. Create a new .c file using vim b. Compile and run below code #include int main( int argc, char *argv[]) { if arge == 2) { printf("The argument supplied is %s ", argv[1]); else if( arge > 2) { printf("Too many arguments supplied. In"); } else printf("One argument expected. In"); } C. Show the program result If the program executed with single argument, two arguments and without passing any argument? d. Based on your experiments, determine the minimum and maximum value that can be returned by main? How many bits are needed for this

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!