\documentclass{article}

\usepackage[latin2]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[magyar]{babel}

\begin{document}

\begin{tabular}{|cc|}
  \hline X & X \\\hline
\end{tabular}
\begin{tabular}{|@{}c@{}c@{}|}
  \hline X & X \\\hline
\end{tabular}

\end{document}
