High Quality Content by WIKIPEDIA articles! The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that does not return a result. Usually such functions are called for their side effects. The void types serves the same purpose of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal. In such situations, the void type serves a similar purpose to that of the unit type from functional programming...
High Quality Content by WIKIPEDIA articles! The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that does not return a result. Usually such functions are called for their side effects. The void types serves the same purpose of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal. In such situations, the void type serves a similar purpose to that of the unit type from functional programming languages; however, there are some differences in allowable usage, in that the void type is taken to be an empty type with no values. See Unit type#In programming languages for a comparison. C and C++ also support the pointer to void type (specified as void *), but this is an unrelated notion. Variables of this type are pointers to data of an unspecified type, so in this context (but not the others) void acts as a universal or top type. A program can convert a pointer to any type of data to a pointer to void and back to the original type without losing information, which makes these pointers useful for polymorphic functions.
Данное издание не является оригинальным. Книга печатается по технологии принт-он-деманд после получения заказа.
Вот уже почти 20 лет компания Google обеспечивает работу невообразимо сложных и масштабных систен, которые чутко реагируют на запросы пользователей. Поисковик Google находит ответ на любые вопросы за доли секунды, карты Google с высочайшей точностью отражают земной ландшафт, а почта Google доступна в режиме 365/24/7 и, в сущности, стала первым общедоступным облачным хранилищем. Неужели эти системы безупречны? Нет, они...
Оставить комментарий