What is the output of the following code snippet?
int main()
{
int sum;
sum = sum1(10.1, 11.2, 3.3) + sum2(5.5, 6.6, 7.7) + sum3(4.0, 5.0, 8.0);
cout << "The sum of the volumes is " << sum << "\n";
return 0; }
Options
- Will result in an error
- The sum of the volumes is 802.806
- The sum of the volumes is
- The sum of the volumes is 812.806
CORRECT ANSWER : The sum of the volumes is 812.806
Write your comments