A function without arguments:
- Does not receive data from main()
- Performs a fixed task
- Does not receive data from main()
- Performs a fixed task
SYNTAX:
return_type function_name() {
statements;
}
EXAMPLE:
#include <stdio.h>
void printHeader() {
printf("--- FACTORY STARTED ---\n");
}
int main() {
start();
printf("Factory initialized.\n");
return 0;
}