Latex how to write underscore

To write underscore symbole in LateX, you must use backslash to protect it like follows

$$\_$$

$$a\_b$$

$$a\_b\_c$$

which gives

\[\_\] \[a\_b\] \[a\_b\_c\]