Question: need help urgently thanks again printf ( %c...... 2. 15 Consider the code below. a. It contains four errors that prevent it from being properly

need help urgently thanks again

 need help urgently thanks again printf (" %c...... 2. 15 Consider

printf (" %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. Line 9 does not contain any syntax error. However, there is a logical error that will prevent the code from correct execution. What is this error? 5 1. #include 2. 3. int main() 4. 5. char cChoice; 6. int nfact=21; 7. 8. printf ("Multiply Menu a:3 b:5 c:9 "); 9. scanf("%d", &cchoice); 10. if (cChoice == 'a' Choice == 'c') 12. nfact*=3; else (cChoice != 'b') 14. nfact=nfact*5; 15. if (cChoise = '') 16. nfact=*3; 17. printf("Result is s "infact); 18. 19. return 0; 20. } 11. 13. char c='a'; int i, j; 3. Considering the code on the right, answer the following. a. How many times the printf() function is called? Explain your answer. b. What is the output of the program? c. Modify the program so that the program prints all the digits inside brackets. 5 8 in oo for(i=0;i

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!