dev c
  • Introduction
  • Variable
  • Data Type
    • Data model
    • Data Alignment
      • stdint.h
  • Escape Sequence
  • First Chapter
  • How to C in 2016
  • Head Files
  • Struct
  • Compiler
    • GCC
    • Clang
  • Design Pattern
  • Pointer
    • Pointer 運算
    • With Array
    • New and Delete
    • Memory Allocation
    • Pointer to Pointer
    • char pointer
    • function pointer
  • STDIO
  • Variable-length argument
  • Struct
    • Struct and Pointer
    • Union
  • Advanced
    • pragma
  • C Library
    • assert.h
    • string.h
  • swap function
  • Function
    • Basics
    • Use function as args
  • Operator
    • Increment, Assignment, Decrement
  • Operators
  • Associative Array
  • 題庫
  • Array
    • Strings
Powered by GitBook
On this page

Was this helpful?

  1. Function

Use function as args

#Function Pointer

function A

{}

function B

{}

function C (arg1, arg2, addr_of_function)

{

}

int main()

{

C(arg1, arg2, A);

C(arg1, arg2, B);

}

PreviousBasicsNextOperator

Last updated 4 years ago

Was this helpful?