huitmj / ooDesignInC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ooDesignInC

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

  1. Basic: Using independent function pointer
  2. Array: Using an array of function pointer
  3. 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!");
}

About


Languages

Language:C 100.0%