Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

array of functions

divijdivij Member Posts: 1
Hi,
All, can I make array of functions in C if yes then how.

Thanks in Advance
Divij

Comments

  • MT2002MT2002 Member Posts: 1,444
    : Hi,
    : All, can I make array of functions in C if yes then how.
    :
    : Thanks in Advance
    : Divij
    :
    :
    [blue]
    No. You can make an array of function pointers, though.[/blue]
  • pri_priyachanpri_priyachan Member Posts: 5
    : : Hi,
    : : All, can I make array of functions in C if yes then how.
    : :
    : : Thanks in Advance
    : : Divij
    : :
    : :
    : [blue]
    : No. You can make an array of function pointers, though.[/blue]
    :
    int *(*fun[3])(int arg, char arg1)
    fun is pointer to array of three functions each functions taking two arguments one of int an other character type, the functions returns pointer(address) to int type
Sign In or Register to comment.