Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it in c 2. 15 Consider the code below. a. It contains four errors that prevent it from being properly compiled (syntax errors). For

image text in transcribed

solve it in c

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. #include int main() 5. 6. 7. char sur [40] name; int per=2, pass=1453; printf("pin:"); scanf("%d", &per); if (pass =! per) 8. 9. 10. 11. 12. 13. 14. 15. name='F'; for (i=9; i >=39; i++) sur(i)=name; 1 else printf("Incorrect Password! '); return 0 16. 17. 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions