[Tex/LaTex] Placing two images side by side in a twocolumn document

graphicshorizontal alignmenttwo-column

I tried the solution offered in Two figures side by side and on overleaf.com: Positioning images and tables) see at 'Multiple images in one figure'. But both show the image one below the other.
Is there a way to show them on them side by side in the twocolumn class?
this is heade of my code:

 \documentclass[twocolumn,prl,nobalancelastpage,aps,10pt]{revtex4-1}
 %\documentclass[rmp,preprint]{revtex4-1}
 \usepackage[latin9]{inputenc}
  \usepackage[english]{babel}
 \usepackage{graphicx,bm,times}
 \graphicspath{ {C:/Varie/UNI/MANO/I-semestre-2018/fraboni/esperimenti/RT/pictures/}{C:/Varie/UNI/MANO/I-semestre-2018/fraboni/esperimenti/RT/pictures/experimental-apparatus-RT} }
\usepackage{subcaption}
 \usepackage{lipsum}
 \usepackage{mwe}
 \begin{document}

Best Answer

You probably have an empty line between the two images; that necessarily inserts a paragraph break between them, effectively putting one below the other.

enter image description here

\documentclass[twocolumn]{article}

\usepackage{lipsum,graphicx}

\begin{document}

\sloppy% Just for this example
\lipsum[1]

\begin{figure}[h]
  \includegraphics[width=.45\columnwidth]
    {example-image-a}\hfill
  \includegraphics[width=.45\columnwidth]
    {example-image-b}

  \caption{A figure caption}
\end{figure}

\lipsum[2-10]

\end{document}
Related Question