Section C: Error Detection and Correction [5 marks] Find the errors in the following code and correct them. Answer all q

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

Section C: Error Detection and Correction [5 marks] Find the errors in the following code and correct them. Answer all q

Post by correctanswer »

Section C Error Detection And Correction 5 Marks Find The Errors In The Following Code And Correct Them Answer All Q 1
Section C Error Detection And Correction 5 Marks Find The Errors In The Following Code And Correct Them Answer All Q 1 (104.11 KiB) Viewed 76 times
Section C: Error Detection and Correction [5 marks] Find the errors in the following code and correct them. Answer all questions. 1) if(choice = 3) printf("You have chosen: Wizard!\n"); 2) for(i=0; i > NAME_LENGTH ;i++) printf("%c\n", MyArray); 3) void main() { int V, i; for(i=0; i < 3; i++) V += speed+gravity-thrust; printf(" Speed=%d\n", V); } 4) void main() { int i=0, Array1[10], Array2[10] = {1,2,3,4,5,6,7,8,9,0}; Array1 = Array2; for (i=0; i<10; i++) printf ("%d+%d=%d\n", Array1, Array2, Array1 +Array2); } 5) while(p, !Quit_loop) { } printf("String is %s\n", p->name); p= *p->next; if (!p) Quit_loop = TRUE;
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply