Question: i need help understanding this Debug a function called Largest which takes three integer inputs a banda The function should return the largest of these
Debug a function called Largest which takes three integer inputs a banda The function should return the largest of these three values. Examples Largest(1, 2, 3) should return 3. Largest should not throw an exception, The function prototype is int Largest(int a, int b, int c). START by correcting the syntax error(s), if any, code.cpp NUW 1. int Largest(int a, int b, int c) { 2 int d 0; 3 if (a > d) { 4 d = a } else if (d > b) { 6 b = d; 2 } else if (c >> d) { 8 9 } 10 return c; 11 } HNMONDO d - C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
