17 lines
391 B
TeX
17 lines
391 B
TeX
|
\begin{frame}[containsverbatim]
|
||
|
\frametitle{\secname}
|
||
|
\framesubtitle{\subsecname~I}
|
||
|
|
||
|
Une fonction retourne une valeur à la fonction appelante par l'intermédiaire du mot-clé \verb|return|.
|
||
|
\vspace{0.5cm}
|
||
|
\begin{block}{Retour d'une fonction}
|
||
|
\begin{verbatim}
|
||
|
type_retour nom_fonction() {
|
||
|
instructions
|
||
|
return expression;
|
||
|
}
|
||
|
\end{verbatim}
|
||
|
\end{block}
|
||
|
\end{frame}
|
||
|
|