This is C programming. The function definition below should display 20 using the function call: function(5); void function(int num1) { int i=1, sum=0; do{ sum=sum+num1; i=i+1; }while(i


This is C programming.



The function definition below should display
20using the function call:
function(5);



void function(int num1) {


int i=1, sum=0;


do{


sum=sum+num1;


i=i+1;


}while(i<>


printf("%d",sum);


return sum;


}



Identify and explain the error in the defined function.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here