About: Dereference operator     Goto   Sponge   Distinct   Permalink

An Entity of Type : dbo:Company, within Data Space : dbpedia.org associated with source document(s)
QRcode icon
http://dbpedia.org/describe/?url=http%3A%2F%2Fdbpedia.org%2Fresource%2FDereference_operator

In computer programming, the dereference operator or indirection operator, sometimes denoted by "*" (i.e. an asterisk), is a unary operator (i.e. one with a single operand) found in C-like languages that include pointer variables. It operates on a pointer variable, and returns an l-value equivalent to the value at the pointer address. This is called "dereferencing" the pointer. For example, the C code assigned 1 to variable x by using the dereference operator and a pointer to the variable x.

AttributesValues
rdf:type
rdfs:label
  • Dereference (cs)
  • Operador de desreferencia (es)
  • Dereference operator (en)
  • Opérateur de déréférencement (fr)
  • Оператор розіменування (uk)
  • 解引用运算符 (zh)
rdfs:comment
  • Dereference je v programování operace, kterou se získává přístup k proměnné, na níž se odkazuje ukazatel nebo reference. V některých případech a jazycích je dereference implicitní (např. reference v C++), ve většině jazyků je však třeba použít unární operátor dereference. (cs)
  • In computer programming, the dereference operator or indirection operator, sometimes denoted by "*" (i.e. an asterisk), is a unary operator (i.e. one with a single operand) found in C-like languages that include pointer variables. It operates on a pointer variable, and returns an l-value equivalent to the value at the pointer address. This is called "dereferencing" the pointer. For example, the C code assigned 1 to variable x by using the dereference operator and a pointer to the variable x. (en)
  • El operador de 'desreferencia' u operador de indirección, identificado por el asterisco "*", es un operador unario usado en lenguajes de programación que incluyen variables de tipo , como el lenguaje C y varios de sus descendientes. Opera sobre una variable de tipo puntero y devuelve una expresión equivalente al valor contenido en la dirección apuntada por dicho puntero. Esta operación recibe el nombre de "desreferenciar". Por ejemplo: int x = 0;int *puntero_a_x = &x; // * se usa para declarar un puntero*puntero_a_x = 1; // * es el operador de indireccion// x ahora contiene 1 (es)
  • L'opérateur de déréférencement ou d'indirection est un opérateur unaire (c'est-à-dire avec un seul opérande) que l'on trouve dans les langages qui incluent des pointeurs, tels que les langages C et C++, où il est désigné par le symbole * (astérisque). Il nécessite pour opérande un pointeur et renvoie la valeur stockée à l'adresse contenue dans le pointeur. On dit pour cela que l'on "déréférence" le pointeur. Par exemple, le code C suivant : affecte 42 à la variable <b>x</b> à l'aide de l'opérateur de déréférencement et d'un pointeur sur la variable <b>x</b> . (fr)
  • 解引用运算符(dereference operator)或称间址运算符(indirection operator)。C语言编程语言家族中常表示为"*" (一个星号),为单元运算符,作用于1个指针变量,返回该指针地址的等效左值。这被称为指针的解引用。例如: int x; int *p; // * is used in the declaration: // p is a pointer to an integer, since (after dereferencing), // *p is an integer x = 0; // now x == 0 p = &x; // & takes the address of x // now *p == 0, since p == &x and therefore *p == x *p = 1; // equivalent to x = 1, since p == &x // now *p == 1 and x == 1 在C语言中,&是解引用运算符*的逆运算。因此*&s等价于s。例如: (zh)
dcterms:subject
Wikipage page ID
Wikipage revision ID
Link from a Wikipage to another Wikipage
sameAs
dbp:wikiPageUsesTemplate
has abstract
  • Dereference je v programování operace, kterou se získává přístup k proměnné, na níž se odkazuje ukazatel nebo reference. V některých případech a jazycích je dereference implicitní (např. reference v C++), ve většině jazyků je však třeba použít unární operátor dereference. Operátor dereference se zapisuje různě. V jazyce Pascal se na rozdíl od většiny ostatních jazyků zapisuje operátor za ukazatel; ve standardním Pascalu se pro dereferenci používá symbol šipka (↑), který však není v mnoha znakových sadách obsažen, proto bývá nahrazován znakem stříška (^) nebo zavináč (@); v Turbo Pascalu se zavináč naopak používá pro získání adresy. V jazyce C se operátor dereference někdy nazývá indirection operator a používá se pro něj symbol hvězdička (*). V mnoha skriptovacích jazycích se pro dereferenci používá symbol dolar ($), který primárně slouží pro vyhodnocení obsahu proměnné. (cs)
  • In computer programming, the dereference operator or indirection operator, sometimes denoted by "*" (i.e. an asterisk), is a unary operator (i.e. one with a single operand) found in C-like languages that include pointer variables. It operates on a pointer variable, and returns an l-value equivalent to the value at the pointer address. This is called "dereferencing" the pointer. For example, the C code int x; int *p; // * is used in the declaration: // p is a pointer to an integer, since (after dereferencing), // *p is an integer x = 0; // now x == 0 p = &x; // & takes the address of x // now *p == 0, since p == &x and therefore *p == x *p = 1; // equivalent to x = 1, since p == &x // now *p == 1 and x == 1 assigned 1 to variable x by using the dereference operator and a pointer to the variable x. (en)
  • El operador de 'desreferencia' u operador de indirección, identificado por el asterisco "*", es un operador unario usado en lenguajes de programación que incluyen variables de tipo , como el lenguaje C y varios de sus descendientes. Opera sobre una variable de tipo puntero y devuelve una expresión equivalente al valor contenido en la dirección apuntada por dicho puntero. Esta operación recibe el nombre de "desreferenciar". Por ejemplo: int x = 0;int *puntero_a_x = &x; // * se usa para declarar un puntero*puntero_a_x = 1; // * es el operador de indireccion// x ahora contiene 1 El código anterior asigna el valor 1 a la variable x usando el operador de desreferencia sobre un puntero a dicha variable. (es)
  • L'opérateur de déréférencement ou d'indirection est un opérateur unaire (c'est-à-dire avec un seul opérande) que l'on trouve dans les langages qui incluent des pointeurs, tels que les langages C et C++, où il est désigné par le symbole * (astérisque). Il nécessite pour opérande un pointeur et renvoie la valeur stockée à l'adresse contenue dans le pointeur. On dit pour cela que l'on "déréférence" le pointeur. Par exemple, le code C suivant : int x = 21; int *p; // * est utilisée pour la déclaration: // p est un pointeur sur un entier, // *p est un entier p = &x; // & renvoie l'adresse de x // maintenant *p == 21, puisque p == &x et que *p == x *p = 42; // équivaut à écrire x = 42, car p == &x // donc *p == 42 et x == 42 car p est un pointeur qui contient l'adresse de x, // modifier *p revient à modifier x affecte 42 à la variable <b>x</b> à l'aide de l'opérateur de déréférencement et d'un pointeur sur la variable <b>x</b> . (fr)
  • 解引用运算符(dereference operator)或称间址运算符(indirection operator)。C语言编程语言家族中常表示为"*" (一个星号),为单元运算符,作用于1个指针变量,返回该指针地址的等效左值。这被称为指针的解引用。例如: int x; int *p; // * is used in the declaration: // p is a pointer to an integer, since (after dereferencing), // *p is an integer x = 0; // now x == 0 p = &x; // & takes the address of x // now *p == 0, since p == &x and therefore *p == x *p = 1; // equivalent to x = 1, since p == &x // now *p == 1 and x == 1 在C语言中,&是解引用运算符*的逆运算。因此*&s等价于s。例如: p = &s; // the address of s has been assigned to p; p == &s; // *p is equivalent to s 结构s的成员a的值可表示为s.a。若指针p指向s (即p == &s), s.a等价于(*p).a,也可用结构解引用运算符作为语法糖缩写表示为p->a: p = &s; // the address of s has been assigned to p; p == &s; // s.a is equivalent to (*p).a // s.a is equivalent to p->a // (*p).a is equivalent to p->a Unix的外壳脚本以及一些工具软件如Makefile中,美元符"$"为解引用运算符,用于把变量名字转译为其内容。 (zh)
gold:hypernym
prov:wasDerivedFrom
page length (characters) of wiki page
foaf:isPrimaryTopicOf
is Link from a Wikipage to another Wikipage of
is Wikipage redirect of
is foaf:primaryTopic of
Faceted Search & Find service v1.17_git139 as of Feb 29 2024


Alternative Linked Data Documents: ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3330 as of Mar 19 2024, on Linux (x86_64-generic-linux-glibc212), Single-Server Edition (378 GB total memory, 49 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software