latex minipage side by side figures

To get two figures side by side just use this example:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{minipage}[c]{0.5\textwidth}
\includegraphics[width=\textwidth]{figure 1}
\end{minipage}
\begin{minipage}[c]{0.5\textwidth}
\includegraphics[width=\textwidth]{figure 2}
\end{minipage}
\end{document}

It also works with two tables side by side.