From fd3a4b83364aea336c1c07f7bb7c7a5de7760d02 Mon Sep 17 00:00:00 2001 From: tTh Date: Thu, 8 Aug 2024 13:56:21 +0200 Subject: [PATCH] *t vs t[] --- chap/C.tex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chap/C.tex b/chap/C.tex index f84fb58..633ac39 100644 --- a/chap/C.tex +++ b/chap/C.tex @@ -438,6 +438,13 @@ XXX il y a encore beaucoup à dire, et de quoi bien rire \textsl{:)} \subsection{Pointeurs et chaines} +\begin{verbatim} + char *text = "this is a text"; + char text[] = "this is a text"; +\end{verbatim} + +Vous le voyez, le piège ? + \subsection{Pointeurs et fonctions} Exemple classique : qsort.