Question: 2. (20 points) Here are four C programs to tratushte bituary to derimal; that is, you rum *. / pb101 ? and it will print
2. (20 points) Here are four C programs to tratushte bituary to derimal; that is, you rum *. / pb101 ? and it will print ' 5 '. For each program, indicate whether it works. If it does not, shom lions to fix it by changing the ferest characters possible. Note that these programs will crabl if not given an argument; that's not considered an error per the design spec. Program A Works as is. Needs fixing \#include \#include \#include int main (int argc, char *argvD) i int val=0; // varning: assumes argv[1]! int len =strlen(argv[1]); for (int 1=0;1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
