Skip to content
onsuggest
Log in
Article en

Pointer to Array in C: Compression File Analogy

Source: /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_.

Keyboard shortcuts

Previous discovery
←P
Next discovery
→N
Like
L
Not for me
X
Save
S
Show this help
?
Close
Esc

Shortcuts work on the discovery page.