Well let me explain this to you in a better way. The terms 'subprogram', 'function' and 'method' have all the same meaning in C/C++ but we usually called them functions, and we divide the functions into two types :
1)Function : it's the usual one, as we all know, it returns a value.
2) General format :
Type function_name(<arguments>){
// Your work
return <value/variable> //Note : the type must be the same as the function
// type.
}
Example :
int Maheen(int a, int b){
int c = a + b;
return c;
}
Procedure : it's a function but it doesn't return any value, it begins with 'void'.
General format :
void function_name(<arguments>){
// Your work
//Note : There is no return here.
}
Example :
void Maheen(int a, int b){
int c = a + b;
printf("The sum is : %d", c);
}
I think this can help you greatly
<span>
</span>
Answer:
Shakespeare wrote the play "Hamlet" in 1601, in 1556 Shakespeare's only son died of an unknown illness. The death of his son was believed to be the reason of "Hamlet".
Answer:
Its pipes stood on top of a wind chest that was connected to a conical wind reservoir. The reservoir was supplied with air by one or two pumps. For the pipes to sound evenly, the wind chest needed steady air pressure. The open bottom of the cone was set in a tall outer container half filled with water.
Explanation: