This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem using function pointer

hi!
I am using Keil C compiler(C51) 7.20 Version. i am facing some problem in pointer to function in arrays. If I add a new function to the arrays in function pointer at runtime, my program restarted when that particular newly added function is called. Pls help me in this regard.

  • " i am facing some problem in pointer to function in arrays."

    You would do well to search this website for "function pointer" and read everything you can find. Once you have done that, if you are not absolutely certain you fully understand all the implications of using function pointers in C51 I would recommend you take an alternative approach. While a different approach may not be as elegant it will probably save you a lot of debugging time.