( uid_2716 | 2012. 08. 01., sze – 00:23 )

Jelzem, hogy az

add2

meghívása három paraméterrel undefined behavior.

ISO C99 6.5.2.2p6

If the expression that denotes the called function has a type that does not include a prototype, the integer promotions are performed on each argument, and arguments that have type float are promoted to double. These are called the default argument promotions. If the number of arguments does not equal the number of parameters, the behavior is undefined. [...]

A

(*p[i])

típusához nem tartozik prototípus (a paraméterek típusa nincs deklarálva az

intfp

-nél). Az argumentumok száma 3, a paraméterek száma 2.