Binding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ramu

    #1

    Binding

    Hi,
    what is static and dynamic binding? Does C support dynamic
    binding? if it supports, can you tell me how it supports with an
    example code?

    regards

  • Mike Wahler

    #2
    Re: Binding


    "ramu" <ramu.ask@gmail .com> wrote in message
    news:1138337386 .097471.159550@ z14g2000cwz.goo glegroups.com.. .[color=blue]
    > Hi,
    > what is static and dynamic binding?[/color]

    In the context of functions in a programming language,
    they are the selection of a function to call, from
    a set of candidate functions, done at compile time
    and run time, respectively.
    [color=blue]
    > Does C support dynamic
    > binding?[/color]

    Not directly by the language (as in C++), but one
    could write C code to achieve the same effect.
    Look up 'pointer to function'. You'll need to
    write the decision-making code yourself, with
    e.g. 'if', 'switch', or an array of pointers.
    [color=blue]
    > if it supports, can you tell me how it supports with an
    > example code?[/color]

    It doesn't, so I won't.

    -Mike


    Comment

    Working...