Question: Consider the code below. a. It contains four errors that prevent it from being properly compiled(syntax errors). For each of these errors identify it by

Consider the code below.

a. It contains four errors that prevent it from being properly compiled(syntax errors). For each of these errors identify it by indicating the code line and explain how it can be fixed so that the program is successfully compiled.

b. The code also has a line that will never be executed.Which is this line? Modify the code so that the identified line is executed exactly 9 times without creating any further syntax or execution Consider the code below. a. It contains four errors that prevent iterrors.

2. 15 Consider the code below. a. It contains four errors that prevent it from being properly compiled (syntax errors). For each of these errors identify it by indicating the code line and explain how it can be fixed so that the program is successfully compiled. b. The code also has a line that will never be executed. Which is this line? Modify the code so that the identified line is executed exactly 9 times without creating any further syntax or execution errors. 5 1. 2. 3. 4. 5. #include int main() { char sur[40] name; int per=2, pa33=1453; printf("pin:"); scanf("%d", &per); 6. 7. 8 9. 10. 11. 12. 13. 14. if (pass =! per) { name='F'; for (i=9; i>=39; i++) sur[i]=name; } else printf("Incorrect Password! '); 15. return 0 16. 17. }

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!