mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-12 08:08:25 +00:00
[SPCA] Start arrays overview
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
\newpage
|
||||
\subsubsection{Arrays}
|
||||
\lC\ compiler does not do any array bound checks! Thus, always check array bounds.
|
||||
Unlike some other programming languages, arrays are \bi{not} dynamic length.
|
||||
|
||||
The below snippet includes already some pointer arithmetic tricks. The variable \texttt{data} is a pointer to the first element of the array.
|
||||
\inputcodewithfilename{c}{code-examples/00_c/}{03_arrays.c}
|
||||
|
||||
Reference in New Issue
Block a user