While a function definition specifies what a function does, a function prototype can be thought of as identifies its bellow.
В то время как определение функции описывает, что именно делает функция, прототип функции может восприниматься как описание её интерфейса.
Because our add.h contains a function prototype for add(), this prototype is now being used as a forward declaration of add()!
Поскольку add.h содержит прототип функции add(), то он используется в качестве предварительного объявления add()!
Typically, this is accomplished by use of a function prototype.
A function prototype declares the function prior to its definition.
Прототип объявляет функцию до ее первого использования.
As indicated by the function prototype, qsort expects an array of pointers, two integers, and a function with two pointer arguments.
Как видно из прототипа, функция qsort в качестве своих аргументов ожидает массив указателей, два целых
Each function in the function library is specified using a function prototype, which gives the return type, the name of the function, and the type of the arguments.
Каждая функция в этой библиотеке описывается с помощью прототипа, в котором указываются тип возвращаемого значения, название функции и тип аргументов.
There are often several #include lines at the beginning of a source file, to include common #define statements and extern declarations, or to access the function prototype declarations for library functions from headers like<stdio.h>.
Часто исходные файлы начинаются с нескольких строк #include, ссылающихся на общие инструкции #define и объявления extern или прототипы нужных библиотечных функций из заголовочных файлов вроде<stdio.h>.
By including the function prototype, you inform the compiler that the function myfunction takes one integer argument and you enable the compiler to catch these kinds of errors and make the compilation process run smoothly.
Включением прототипа функции вы информируете компилятор о том, что функция «foo» принимает один аргумент целого типа и вы тем самым позволяете компилятору обрабатывать подобные виды ошибок.
If the instance does not have the property, JavaScript will then look for it on the object's constructor function prototype object.
Если объект не включает в себя запрошенное свойство, JavaScript выполнит поиск этого свойства в прототипе объекта.