Not logged in : Login

About: Typedef     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : yago:Language106282651, within Data Space : ods-qa.openlinksw.com:8896 associated with source document(s)

typedef is a reserved keyword in the programming languages C and C++. It is used to create an additional name (alias) for another data type, but does not create a new type, except in the obscure case of a qualified typedef of an array type where the typedef qualifiers are transferred to the array element type. As such, it is often used to simplify the syntax of declaring complex data structures consisting of struct and union types, although it is also commonly used to provide specific descriptive type names for integer data types of varying sizes.

AttributesValues
type
sameAs
wasDerivedFrom
dbpedia-owl:abstract
  • typedef es una palabra reservada en el lenguaje de programación C y C++. Su función es asignar un nombre alternativo a tipos existentes, a menudo cuando su declaración normal es aparatosa, potencialmente confusa o probablemente variable de una implementación a otra.
  • typedef is a reserved keyword in the programming languages C and C++. It is used to create an additional name (alias) for another data type, but does not create a new type, except in the obscure case of a qualified typedef of an array type where the typedef qualifiers are transferred to the array element type. As such, it is often used to simplify the syntax of declaring complex data structures consisting of struct and union types, although it is also commonly used to provide specific descriptive type names for integer data types of varying sizes.
  • typedef(タイプデフ)は、プログラミング言語のCおよびC++におけるキーワード(予約語)である。このキーワードはデータ型に新しい名前(エイリアス、シノニム)をつけるために使用される。プログラマが容易にソースコードを記述・理解できるようにすることが目的である。
  • typedef ist in den Programmiersprachen C und C++ ein Schlüsselwort, das zur Erstellung eines Alias für einen Datentyp verwendet wird. Ein einfaches Beispiel, bei dem ein neuer Typ für ganzzahlige Geschwindigkeiten festgelegt wird, wäre zum vordefinierten Typ <span class="kt">int</span><span class="w"></span> identisch: typedef int km_pro_Stunde; Häufiger wird typedef für kompliziertere Definitionen verwendet:Es ist möglich und üblich, von abgeleiteten Typen weitere Ableitungen zu definieren: int array[10][20]; // Array mit 10 Elementen, wobei jedes Element ein Array von 20 »int« ist.int *p [10]; // Array mit 10 Elementen, wobei jedes Element ein »int *« (=Zeiger auf »int«) ist.int (*q)[10]; // Zeiger auf ein Array mit 10 »int«-Elementen.int (*f)(int *); // Zeiger auf eine Funktion, die einen »int *«-Parameter hat und ein »int« zurückgibt Dies kann schnell zu komplexen und unübersichtlichen Deklarationen führen. Über eine typedef-Deklaration ist es möglich, für einen (möglicherweise zu komplexen) Datentyp einen einfachen Namen zu vergeben: void *(*get_cb(int))(void *); // Unübersichtlich!// Besser:typedef void *(*callback)(void *); // Typedef: »callback« ist ein Zeiger auf eine Funktion, // die einen »void*«-Parameter hat und ein »void*« zurückgibtcallback get_cb(int); // Übersichtlicher: »get_cb« hat einen »int«-Parameter und gibt einen // »callback«-Funktionszeiger zurück
  • typedef è una parola chiave dei linguaggi di programmazione C e C++. Lo scopo della typedef è quello di assegnare dei nomi alternativi a dei tipi di dato esistenti, solitamente a quelli la cui dichiarazione standard è troppo ingombrante, magari confusionale, oppure per rendere il codice riutilizzabile più facilmente tra un'implementazione e un'altra. Per le convenzioni del C (delle librerie standard), i tipi dichiarati con typedef finiscono con la stringa "_t" (per esempio, , ).
  • 在C和C++程式語言中,<b>typedef</b>是一個關鍵字。它用來對一個資料類型取一個別名,目的是為了使原始碼更易於閱讀和理解。它通常用於簡化宣告複雜的類型組成的結構 ,但它也常常在各種長度的整數資料型別中看到,例如size_t和time_t。
  • Typedef jest słowem kluczowym w C i C++. Celem typedef jest przypisanie do istniejących typów, najczęściej tych, których standardowa deklaracja jest zbyt trudna lub może wprowadzić programistę w błąd.
  • typedef는 C와 C++ 프로그래밍 언어의 예약어이다. 다른 자료형의 별명을 만들기 위해 사용된다. 이처럼, struct와 union 타입으로 이루어진 복잡한 자료 구조를 선언하는 문을 단순하게 만들기 위해 종종 사용되지만 다양한 길이의 정수 자료형에 대한 특정한 서술형 이름을 지정하는 것으로 일반화되어 있다. C 표준 라이브러리나 POSIX와 같은 규칙들은 예를 들어 size_t와 time_t처럼 종종 typedef 형의 이름을 '_t'로 끝맺는 것이 종종 권장된다.
dbpedia-owl:wikiPageID
dbpedia-owl:wikiPageRevisionID
comment
  • typedef es una palabra reservada en el lenguaje de programación C y C++. Su función es asignar un nombre alternativo a tipos existentes, a menudo cuando su declaración normal es aparatosa, potencialmente confusa o probablemente variable de una implementación a otra.
  • typedef is a reserved keyword in the programming languages C and C++. It is used to create an additional name (alias) for another data type, but does not create a new type, except in the obscure case of a qualified typedef of an array type where the typedef qualifiers are transferred to the array element type. As such, it is often used to simplify the syntax of declaring complex data structures consisting of struct and union types, although it is also commonly used to provide specific descriptive type names for integer data types of varying sizes.
  • typedef(タイプデフ)は、プログラミング言語のCおよびC++におけるキーワード(予約語)である。このキーワードはデータ型に新しい名前(エイリアス、シノニム)をつけるために使用される。プログラマが容易にソースコードを記述・理解できるようにすることが目的である。
  • typedef è una parola chiave dei linguaggi di programmazione C e C++. Lo scopo della typedef è quello di assegnare dei nomi alternativi a dei tipi di dato esistenti, solitamente a quelli la cui dichiarazione standard è troppo ingombrante, magari confusionale, oppure per rendere il codice riutilizzabile più facilmente tra un'implementazione e un'altra. Per le convenzioni del C (delle librerie standard), i tipi dichiarati con typedef finiscono con la stringa "_t" (per esempio, , ).
  • 在C和C++程式語言中,<b>typedef</b>是一個關鍵字。它用來對一個資料類型取一個別名,目的是為了使原始碼更易於閱讀和理解。它通常用於簡化宣告複雜的類型組成的結構 ,但它也常常在各種長度的整數資料型別中看到,例如size_t和time_t。
  • Typedef jest słowem kluczowym w C i C++. Celem typedef jest przypisanie do istniejących typów, najczęściej tych, których standardowa deklaracja jest zbyt trudna lub może wprowadzić programistę w błąd.
  • typedef는 C와 C++ 프로그래밍 언어의 예약어이다. 다른 자료형의 별명을 만들기 위해 사용된다. 이처럼, struct와 union 타입으로 이루어진 복잡한 자료 구조를 선언하는 문을 단순하게 만들기 위해 종종 사용되지만 다양한 길이의 정수 자료형에 대한 특정한 서술형 이름을 지정하는 것으로 일반화되어 있다. C 표준 라이브러리나 POSIX와 같은 규칙들은 예를 들어 size_t와 time_t처럼 종종 typedef 형의 이름을 '_t'로 끝맺는 것이 종종 권장된다.
  • typedef ist in den Programmiersprachen C und C++ ein Schlüsselwort, das zur Erstellung eines Alias für einen Datentyp verwendet wird. Ein einfaches Beispiel, bei dem ein neuer Typ für ganzzahlige Geschwindigkeiten festgelegt wird, wäre zum vordefinierten Typ <span class="kt">int</span><span class="w"></span> identisch: typedef int km_pro_Stunde; Häufiger wird typedef für kompliziertere Definitionen verwendet:Es ist möglich und üblich, von abgeleiteten Typen weitere Ableitungen zu definieren:
label
  • Typedef
  • Typedef
  • Typedef
  • Typedef
  • Typedef
  • Typedef
  • Typedef
  • Typedef
dbpprop:wikiPageUsesTemplate
described by
http://purl.org/li...ics/gold/hypernym
Subject
is primary topic of
dbpedia-owl:wikiPageLength
dbpedia-owl:wikiPageWikiLink
is sameAs of
is topic of
Faceted Search & Find service v1.17_git55 as of Mar 01 2021


Alternative Linked Data Documents: ODE     Content Formats:       RDF       ODATA       Microdata      About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3322 as of Mar 14 2022, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (7 GB total memory)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software