07-25-2023, 11:01 AM
Functions are blocks of code that perform specific tasks. They need to be declared before using them.
// Function declaration
int add_numbers(int a, int b);
// Function definition
int add_numbers(int a, int b) {
return a + b;
}
// Function declaration
int add_numbers(int a, int b);
// Function definition
int add_numbers(int a, int b) {
return a + b;
}