Based on Application Note: Object-Oriented Programming in C by Quantum Leaps
http://www.state-machine.com/doc/AN_OOP_in_C.pdf
Function Pointer Examples - HelloWorld
- Basic: Using independent function pointer
- Array: Using an array of function pointer
- Struct: Using an array of struct to allow encapsulate attribute and function pointer
Functional identical to,
#include <stdio.h>
void main(void) {
printf("Hello World!");
}