1. #1
    gilly's Avatar
    Registered
    22/01/05
    Location
    Aalst/Gent
    Posts
    4,913
    iTrader
    21 (100%)
    Mentioned
    5 Post(s)
    Reputation
    0/42

    C Pointerfctie oef

    bedankt
    Last edited by gilly; 02-09-2012 at 14:16.
    no votes  

  2. #2
    Fraggie's Avatar
    Registered
    17/07/02
    Posts
    9,537
    iTrader
    3 (100%)
    Mentioned
    0 Post(s)
    Reputation
    4/39
    Zoals dit? myFuncs is de array met de pointers naar de functies. En vervolgens wordt de functie fa gedemonstreerd.
    Code:
    int (*myFuncs[]) (char*, char*) = { fa, fb, fc };
    printf("%d\n", (*myFuncs[0])("ab", "ab"));
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in