Files
eth-summaries/semester3/spca/parts/00_c/01_basics/04_arrays.tex

8 lines
395 B
TeX

\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}