[Tex/LaTex] How to draw an arrow to a table cell

arrowstables

I'd like to draw something like drawing an arrow to a table cell. But in my case the arrow should be in the right side. Could you please change the following code:

\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{figure}[ht]
    \centering
    \begin{tabular}{l@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r}
      \toprule
      &      & a & b & c \\
      \midrule
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
        \noalign{\smash{\llap{\lower2pt\hbox{$\longleftarrow$}}}}
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      \bottomrule
    \end{tabular}
\end{figure}
\end{document}

Best Answer

\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{figure}[ht]
    \centering
    \begin{tabular}{l@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r}
      \toprule
      &      & a & b & c \\
      \midrule
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4\rlap{~\lower4pt\hbox{$\longleftarrow$}}\\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      \bottomrule
    \end{tabular}
\end{figure}
\end{document}

enter image description here