Question: Consider the following C-program that fails to compile due to syntax errors. Identify the errors and correct the program so that it compiles successfully. What

 Consider the following C-program that fails to compile due to syntax

Consider the following C-program that fails to compile due to syntax errors. Identify the errors and correct the program so that it compiles successfully. What will be the output when the program is executed succesfully! 19 Marks! 1. Ninclude 2. #include 3. void function 0:40: 4. LES: 5. 6. int main() 7. X function : 9. function : TO function : return 0; 12 1 13. function 0:40 14. 1 15. 16. static int y - 100: 17. printf("a",x): 18. printf(" ya". ) UFMFN7-15-1 C Programming) Page 4 of 6 19. 20. 21. (b) (c) Consider the C-program in Q4a). Explain the purpose of the keyword static 13 Marks Consider the C-program in 04(a), identify the global and local variables. What is the importance of global variables in a C-program 13 Marka Consider the following fragment: (d) ifa-5) printf("als 5": 1 else if (4) printf("a is 4"): 1 che printf("a is unknown

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!