Цитата(Xenia @ Dec 14 2012, 15:45)

А именно, в выражении f() скобочки должны интерпретировать f, как указатель (в данном случае на функцию), а не как-то иначе.
И это так и есть по стандарту.
Цитата
6.3.2 Other operands
6.3.2.1 Lvalues, arrays, and function designators
...
3 Except when it is the operand of the sizeof operator or the unary & operator, or is a string literal used to initialize an array, an expression that has type ‘‘array of type’’ is converted to an expression with type ‘‘pointer to type’’ that points to the initial element of the array object and is not an lvalue.
4 A function designator is an expression that has function type. Except when it is the operand of the sizeof operator or the unary & operator, a function designator with type ‘‘function returning type’’ is converted to an expression that has type ‘‘pointer to function returning type’’.
Цитата(Xenia @ Dec 14 2012, 15:45)

Зачем же тогда f предварительно разыновывать?
Абсолютно незачем. Так как после этого разименованное ‘‘function returning type’’ моментально опять превращается в ‘‘pointer to function returning type’’ для того, чтобы скобочки
() (которые в данном случае являются «function-call operator») могли этим воспользоваться.
Цитата
6.5.2.2 Function calls
Constraints
1 The expression that denotes the called function shall have type pointer to function returning void or returning an object type other than an array type.
Как следствие, разыменовывать можно сколько угодно раз, это ничего не меняет.
Код
#include <stdio.h>
int (*pf)(const char *) = puts;
int main()
{
pf("pf");
// Разыменовываем, автоматически приводится к указателю, мы его опять разыменовываем и т.д.
(****pf)("****pf");
return 0;
}
С выборкой указателя на функцию из массива аналогично
pfunc_array[index](arguments); и всё.
Но при большом желании можно и
(*****pfunc_array[index])(arguments);. Эффект тот же.
И где-то на этом форуме об этом уже говорили. И вроде как не раз.
_____________________
Сегодня смотрел «День сурка». Опять…