网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Pointer structure
释义

Pointer structure

中文百科

指标 (计算机科学) Pointer (computer programming)

(重定向自Pointer structure)
名为 a 的指标,指向一个内存地址,当中的值为 b。要注意的是,在这个示意状况中使用的计算结构,对指标及非指标,都使用相同的地址空间以及表示法,但是在真实状况中,不同的计算结构可能有不同做法。
Le pointeur a pointe sur la variable b. On peut noter que b contient un nombre (en hexadécimal 00000011 = en décimal 17), et que a contient l'adresse de b en mémoire (en hexadécimal 1008). Dans ce cas précis, l'adresse et la donnée sont contenues dans 32 bits.
Der Zeiger a zeigt auf Variable b. Die Variable b enthält eine Nummer (hexadezimal 01101101) und die Variable a enthält die Speicheradresse von b (hexadezimal 1008). In diesem Fall passen die Adresse und die Daten in ein 32-bit-Wort.
Video Tutorial über Zeiger, Dereferenzierung, Felder & Zeigerarithmetik und deren Funktionsweise im Arbeitsspeicher am Beispiel der Programmiersprache C

在计算机科学中,指标英语:Pointer),是编程语言中的一类数据类型及其对象或变量,用来表示或保存一个内存地址,这个地址的值直接指向(points to)存在该地址的对象的值。

指标参考(reference)了内存中一个地址。通过被称为指标反参考(dereferencing)的动作,可以取出在那个地址中保存的值。保存在指标指向的地址中的值,可能代表另一个变量、结构、对象或函数。但是从从指标值是无法得知它所参照的内存中保存了什么数据型别的信息。可以打个比方,假设将电脑内存当成一本书,一张内容记录了某个页码加上行号的便利贴,可以被当成是一个指向特定页面的指标;根据便利粘贴面的页码与行号,翻到那个页面,把那个页面的那一行文本读出来,就相当于是对这个指标进行反参考的动作。可做一类比以增强对指针的理解:整形(integral)也是一类数据类型及其对象或变量,可定义具体的数据类型如短整形(short)、长整形(long)、长长整形(long long)、无符号整形(unsigned)等等;也可以用于称呼整形值、整形对象、整形变量等。又如,一个浮点指针(float *),可称作指向了一个浮点类型的对象。

英语百科

Pointer (computer programming) 指标 (电脑科学)

(重定向自Pointer structure)
Pointer a pointing to the memory address associated with variable b. Note that in this particular diagram, the computing architecture uses the same address space and data primitive for both pointers and non-pointers; this need not be the case.
Le pointeur a pointe sur la variable b. On peut noter que b contient un nombre (en hexadécimal 00000011 = en décimal 17), et que a contient l'adresse de b en mémoire (en hexadécimal 1008). Dans ce cas précis, l'adresse et la donnée sont contenues dans 32 bits.
Der Zeiger a zeigt auf Variable b. Die Variable b enthält eine Nummer (hexadezimal 01101101) und die Variable a enthält die Speicheradresse von b (hexadezimal 1008). In diesem Fall passen die Adresse und die Daten in ein 32-bit-Wort.
Video Tutorial über Zeiger, Dereferenzierung, Felder & Zeigerarithmetik und deren Funktionsweise im Arbeitsspeicher am Beispiel der Programmiersprache C

I do consider assignment statements and pointer variables to be among computer science's most valuable treasures.

Donald Knuth, Structured Programming with go to Statements

In computer science, a pointer is a programming language object, whose value refers to (or "points to") another value stored elsewhere in the computer memory using its address. A pointer references a location in memory, and obtaining the value stored at that location is known as dereferencing the pointer. As an analogy, a page number in a book's index could be considered a pointer to the corresponding page; dereferencing such a pointer would be done by flipping to the page with the given page number.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/17 15:55:48