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])(); } }
"...are they the same?" With the qualification that we are talking about "Standard" C (i.e., ANSI/ISO), then the answer is yes, they are the same.