|
|
От: |
Артур
|
|
| Дата: | 10.04.03 14:55 | ||
| Оценка: | 18 (2) | ||
The type of a function is determined using the following rules. The type of each parameter is determined from its own declspecifierseq and declarator. After determining the type of each parameter, any parameter of type “array of T” or “function returning T” is adjusted to be “pointer to T” or “pointer to function returning T,” respectively. After producing the list of parameter types, several transformations take place upon these types to determine the function type. Any cvqualifier modifying a parameter type is deleted . [Example: the type void(*)(const int) becomes void(*)(int) —end example] Such cvqualifiers affect only the definition of the parameter within the body of the function; they do not affect the function type.
|
|
От: |
Михаил Трухманов
|
|
| Дата: | 10.04.03 16:05 | ||
| Оценка: | |||
Any cvqualifier modifying a parameter type is deleted . [Example: the type void(*)(const int) becomes void(*)(int) —end example] Such cvqualifiers affect only the definition of the parameter within the body of the function; they do not affect the function type.