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.
10Why 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
List different types of operators and explain any four of them.TU Board 208110What are the characteristics of array? Write a program to input age of 500 persons and display the following 1. Average age 1. Age between 25 to 30TU Board 208110Differentiate between library function and user defined function. Write a program to swap two values using call by refrence concept.TU Board 208110Explain the basic structure of C Programming.TU Board 20815Describe different formatted input and output functions. Why do we use them?TU Board 20815Write a program to display first 50 prime numbers.TU Board 20815