CSC115 ยท 2079 ยท 10 marks
Why do we need a break and continue statement? Define formal argument and actual argument in function with examples. Identify and list the errors in the following code. ```c int main() { int a, b, c scanf("%d%d%d, &a, &b, &c); sum(a, b, c); return -1; } void sum(int x, int y, int z) { int sum; sum =
Why do we need a break and continue statement? Define formal argument and actual argument in function with examples. Identify and list the errors in the following code.
int main() {
int a, b, c
scanf("%d%d%d, &a, &b, &c);
sum(a, b, c);
return -1;
}
void sum(int x, int y, int z) {
int sum;
sum = a + b + c;
return sum;
}
[10]
C ProgrammingChapter 7: FunctionsFunction Arguments and Return Types