Zum Inhalt springen
onsuggest
Anmelden
Artikel en

Pointer to Array in C: Compression File Analogy

Quelle: /dev/null ·

DISCLAIMER Keep in mind that this is only an analogy to help newcomer understand pointer to array in C programming language. This does not mean there&rsquo;s any sort of compression when we use pointer to array. &arr vs &arr[0] In case you didn&rsquo;t know, we can get the address of an array using the address-of operator like &array. Here&rsquo;s an example: #include <stdio.h> int main(void) { int arr[2]; printf("&arr: %p\n", &arr); // Address to _whole array_.

Tastaturkürzel

Vorherige Entdeckung
←P
Nächste Entdeckung
→N
Mögen
L
Nicht für mich
X
Speichern
S
Diese Hilfe anzeigen
?
Schließen
Esc

Die Kürzel funktionieren auf der Entdeckungsseite.