Subprograms are the fundamental building blocks of programs.
The two fundamental kinds of subprograms are,
- Functions
- Procedures
1. Functions: Functions return values , such that,
int show(int a)
{
return a;
}
2. Procedures: Procedures do not return values, such that
void show(int a)
{
}