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

8051

I run the following program in keil software....it shows printf ANSI-style prototype error....
please give a clue for correcting the error...

#include "Main.h"
#include "show.h"
#include "PRINTF51.c"
void sho_inti(void)
{ int (*fnptr)();
fnptr=show;
printf("Address of function:%u",&show);
(*fnptr)();
} void show(void)
{ printf("\n function called using pointer");
}

Parents
  • There are serious issues with using function pointers in Keil C51!

    You need to carefully study the documentation and ensure that you really understand the issues before continuing with this...

    Just put "Function Pointer" into the 'Search' box, and see what you get...

Reply
  • There are serious issues with using function pointers in Keil C51!

    You need to carefully study the documentation and ensure that you really understand the issues before continuing with this...

    Just put "Function Pointer" into the 'Search' box, and see what you get...

Children
No data