File tree 1 file changed +32
-0
lines changed 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ Pointer Arithmetik
2
+ ==================
3
+ - Was ist Pointer Arithmetik
4
+ - Allgemein
5
+ - In C
6
+ - Arithmetische Optionen
7
+ - Zwischen Pointer
8
+ - Zwischen Pointer und Ganzzahl
9
+ - Anwendungsbeispiele
10
+ - Tauschen über Scopes hinweg
11
+ - Iterriren durch Arrays
12
+ - Heap vs. Stack
13
+
14
+ Stack
15
+
16
+ very fast access
17
+ don't have to explicitly de-allocate variables
18
+ space is managed efficiently by CPU, memory will not become fragmented
19
+ local variables only
20
+ limit on stack size (OS-dependent)
21
+ variables cannot be resized
22
+
23
+ Heap
24
+
25
+ variables can be accessed globally
26
+ no limit on memory size
27
+ (relatively) slower access
28
+ no guaranteed efficient use of space, memory may become fragmented over time as blocks of memory are allocated, then freed
29
+ you must manage memory (you're in charge of allocating and freeing variables)
30
+ variables can be resized using realloc()
31
+
32
+
You can’t perform that action at this time.
0 commit comments