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

What's the difference between function point below!?

My code

void func1(void)
{
	printf("In FUNC1(%d)\n", 1);
}
void func2(void)
{
	printf("In FUNC2(%d)\n", 2);
}

code void (*ff[])()={func1,func2};

void main(void)
{
	SCON = 0x50;
	TMOD |= 0x20;
	TH1 = 0xf3;
	TR1 = 1;
	TI = 1;
	while( 1 )
	{
		ff[0]();
		ff[1]();
                  (*ff[0])();
                  (*ff[1])();
        

	}
}

For ff[0]() and (*ff[0])() , are they the same?

0