CSC115 C Programming

C ProgrammingTU Board 2079

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.

10

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;

}
A worked answer is on its wayMeanwhile, read the C Programming notes for this topic.

Discussion

Loading…

More C Programming questions

All C Programming old questions