C Programming207910 marksFunction Arguments and Return Types
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]
--- The break statement is used to immediately exit from a loop (for, while, do-while) or a switch statement before its normal termination condition is reached. Without break, a loop would continue executing even when a desired condition has been met, wasting processing time or producing incorrec...