Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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. 1. 2. 3. WN #include int main() { char sur [40] name; int per=2, pass=1453; printf("pin:"); scanf("%d", &per); 5. 6. 7. 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. }

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 Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

THE 3 FJNJTF-

Answered: 1 week ago

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago