%% -*- mode: latex; TeX-master: "informatik.tex"; -*-

\begin{slide}{Argument-�bergabe (Beispiele)}

\kopf{$ $Id: callex.tex,v 1.1 2006-10-09 13:24:17 waldmann Exp $ $}

\begin{minipage}{0.5\textwidth}
Deklaration:
\begin{verbatim}
static void p (int x) 
{ print (x);
  x ++;
}
\end{verbatim}
\end{minipage}
\rule[-3cm]{1pt}{6cm}
\begin{minipage}{0.45\textwidth}
Aufruf:
\begin{verbatim}
int a = 5;
print (a);
p (a);
print (a);

\end{verbatim}
\end{minipage}

\begin{minipage}{0.5\textwidth}
Deklaration:
\begin{verbatim}
static void swap 
   (int [] f, 
    int i, int j)
{ int h = f [i];
  f [i] = f [j];
  f [j] = h;
}
\end{verbatim}
\end{minipage}
\rule[-3cm]{1pt}{6cm}
\begin{minipage}{0.45\textwidth}
Aufruf:
\begin{verbatim}
int [] a = 
    { 2, 4, 1 };
print (a [0]);
swap (a, 0, 1);
print (a [0]);
\end{verbatim}
\end{minipage}


\end{slide}
