\documentclass[12pt,a4paper]{article}

\usepackage{graphicx} % package za unosenje slika

\usepackage[utf8]{inputenc}
\usepackage[T1,T2A]{fontenc}
\usepackage[serbian]{babel}

\begin{document}

Ovde smo ubacili tabelu \ref{tabela:ime}.

\begin{table}[h!]
    \centering
    \caption{Primer jedne tabele} % ispod slike, iznad tabele
    \begin{tabular}{r|c|l}
        \hline
        a & b & c \\
        \hline
        ddddd & eeeee & fffff \\
        \hline
    \end{tabular}
    \label{tabela:ime}
\end{table}


\end{document}