\begin{table}
\begin{tabular}{l | l | c | c }
Name & Hex & dezimal & C-char \\
<cr> & 0x0D & 13 & '\\r' \\ % should read '\r'
<lf> & 0x0A & 10 & '\\n' \\
\end{tabular}
\end{table}
Escaping the '\' preceding 'n' or 'r' to e.g. '\\n' inserts a new line - as the '\\' at the end of the line does.
Using '\n' or '\r' produces weird characters.
How can this be coded properly?






\textbackslash r? – Jun 04 '20 at 07:06\documentclass{article} \begin{document} \begin{table} \begin{tabular}{l | l | c | c } Name & Hex & dezimal & C-char \\ \texttt{<cr>} & \texttt{0x0D} & \texttt{13} & \texttt{'\textbackslash r'} \\ \texttt{<lf>} & \texttt{0x0A} & \texttt{10} & \texttt{'\textbackslash n'} \\ \end{tabular} \end{table} \end{document}? – Jun 04 '20 at 07:14